summaryrefslogtreecommitdiff
path: root/libwaitress/src
diff options
context:
space:
mode:
Diffstat (limited to 'libwaitress/src')
-rw-r--r--libwaitress/src/main.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libwaitress/src/main.c b/libwaitress/src/main.c
index a9acbd7..06daf24 100644
--- a/libwaitress/src/main.c
+++ b/libwaitress/src/main.c
@@ -338,12 +338,12 @@ WaitressReturn_t WaitressFetchCall (WaitressHandle_t *waith) {
/* send request */
if (WaitressProxyEnabled (waith)) {
snprintf (writeBuf, sizeof (writeBuf),
- "%s http://%s:%s%s HTTP/1.1\r\nProxy-Connection: close\r\n",
+ "%s http://%s:%s%s HTTP/1.0\r\n",
(waith->method == WAITRESS_METHOD_GET ? "GET" : "POST"),
waith->host, waith->port, waith->path);
} else {
snprintf (writeBuf, sizeof (writeBuf),
- "%s %s HTTP/1.1\r\nConnection: close\r\n",
+ "%s %s HTTP/1.0\r\n",
(waith->method == WAITRESS_METHOD_GET ? "GET" : "POST"),
waith->path);
}