diff options
| author | ame <[email protected]> | 2025-01-09 00:05:13 -0600 |
|---|---|---|
| committer | ame <[email protected]> | 2025-01-09 00:05:41 -0600 |
| commit | 23e55816c48626e2a16bafd04e63f0d664600768 (patch) | |
| tree | 9c969b1210934015233f833d97eafd805fbe7b00 /src/net/util.h | |
| parent | b4b79eedb97b548ab4527e06a4c3fc3d0910057b (diff) | |
fix file upload and rewrite buffer reading
Diffstat (limited to 'src/net/util.h')
| -rw-r--r-- | src/net/util.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/net/util.h b/src/net/util.h index 254cc32..cfac065 100644 --- a/src/net/util.h +++ b/src/net/util.h @@ -13,6 +13,7 @@ * @return {int64_t} bytes read, -1 if the body was damaged, -2 if the header was */ int64_t recv_full_buffer(int client_fd, char** _buffer, int* header_eof, int* state); +int64_t recv_header(int client_fd, char** _buffer, char** header_eof); /** * @brief converts the request buffer into a parray_t |
