Compare commits
2 Commits
6a511732af
...
f4c3345445
Author | SHA1 | Date | |
---|---|---|---|
f4c3345445
|
|||
893316ebfa
|
@@ -495,7 +495,6 @@ int client_request_handler(sock *client, unsigned long client_num, unsigned int
|
|||||||
use_rev_proxy = (strcmp(buf0, ws_accept) == 0) ? 2 : 1;
|
use_rev_proxy = (strcmp(buf0, ws_accept) == 0) ? 2 : 1;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
print("Fail Test1");
|
|
||||||
ctx.status = 101;
|
ctx.status = 101;
|
||||||
ctx.origin = INTERNAL;
|
ctx.origin = INTERNAL;
|
||||||
res.status = http_get_status(501);
|
res.status = http_get_status(501);
|
||||||
|
@@ -144,7 +144,7 @@ int http_receive_request(sock *client, http_req *req) {
|
|||||||
req->hdr.last_field_num = -1;
|
req->hdr.last_field_num = -1;
|
||||||
|
|
||||||
while (1) {
|
while (1) {
|
||||||
rcv_len = sock_recv(client, buf, CLIENT_MAX_HEADER_SIZE, 0);
|
rcv_len = sock_recv(client, buf, CLIENT_MAX_HEADER_SIZE, 0);
|
||||||
if (rcv_len <= 0) {
|
if (rcv_len <= 0) {
|
||||||
print("Unable to receive http header: %s", sock_strerror(client));
|
print("Unable to receive http header: %s", sock_strerror(client));
|
||||||
return -1;
|
return -1;
|
||||||
|
Reference in New Issue
Block a user