瀏覽代碼

Merge 8a0a05434e into b1f03d4e41

pull/4/merge
Ethan Ferguson GitHub 3 月之前
父節點
當前提交
98f40a2633
沒有發現已知的金鑰在資料庫的簽署中 GPG Key ID: B5690EEEBB952194
共有 1 個文件被更改,包括 8 次插入2 次删除
  1. +8
    -2
      1991.fs

+ 8
- 2
1991.fs 查看文件

@@ -347,11 +347,17 @@ s" image/x-icon" filetype: ico
0
then ;

: substring-to-end ( index c-addr u -- c-addr u )
rot dup rot swap - rot rot + swap ;

: read-request-body ( socket u -- )
\ Takes the socket and the length of the
\ body (Content-Length).
here swap aligned read-socket
set-request-body ;
2over swap drop swap -
2over substring-to-end
set-request-body
drop ;

: read-request ( socket -- addr u )
\ Returns the request header
\ but also collects the request body.


Loading…
取消
儲存