Compare commits

...

5 Commits

Author SHA1 Message Date
Wii
778734e7ab
Merge e1651c9d8b3c78728fc5ad82c15eb3ef4a9f34fa into 13f2b3c663d9fa5c464782a0bfccb30bcc017b0c 2023-11-20 22:13:15 -07:00
_AMD_
13f2b3c663
fix(http): Correct receiveheaders() handling of folded values (#420) 2023-11-13 23:33:26 +03:00
Caleb Maclennan
453a5207ed
style(docs): Trim trailing whitespace in HTML docs
Many editors remove these automatically anyway which makes opening and
editng the docs cause a bunch of noise. This is just to get the noise
out of the way in a style commit so it doesn't leak into other PRs
2023-11-11 08:07:38 +03:00
Caleb Maclennan
e1651c9d8b
Merge branch 'master' into patch-1 2023-11-08 13:39:48 +03:00
DarkWiiPlayer
610bea9c0f
Remove obsolete typedef from compatibility file
MinGWs `ws2tcpip.h` already defines `socklen_t`, making this redundant.
What's more, in a recent version of MinGW this has changed to `unsigned int`, breaking compatibility.
2020-03-30 10:59:30 +02:00
5 changed files with 83 additions and 84 deletions

View File

@ -62,7 +62,7 @@ local function receiveheaders(sock, headers)
-- unfold any folded values
while string.find(line, "^%s") do
value = value .. line
line = sock:receive()
line, err = sock:receive()
if err then return nil, err end
end
-- save pair in table

View File

@ -11,7 +11,6 @@
#include <winsock2.h>
#include <ws2tcpip.h>
typedef int socklen_t;
typedef SOCKADDR_STORAGE t_sockaddr_storage;
typedef SOCKET t_socket;
typedef t_socket *p_socket;