Commit df96dcbb authored by Philipp Schafft's avatar Philipp Schafft 🦁

Update: Announce ourself as HTTP/1.1 in HTTP upgrade

parent 143a8b71
Pipeline #491 failed with stage
in 14 seconds
......@@ -391,7 +391,7 @@ void client_send_101(client_t *client, reuse_t reuse)
NULL, NULL, client);
snprintf(client->refbuf->data + ret, PER_CLIENT_REFBUF_SIZE - ret,
"Content-Length: 0\r\nUpgrade: TLS/1.0, HTTP/1.0\r\n\r\n");
"Content-Length: 0\r\nUpgrade: TLS/1.0, HTTP/1.1\r\n\r\n");
client->respcode = 101;
client->refbuf->len = strlen(client->refbuf->data);
......@@ -453,7 +453,7 @@ void client_send_426(client_t *client, reuse_t reuse)
NULL, NULL, client);
snprintf(client->refbuf->data + ret, PER_CLIENT_REFBUF_SIZE - ret,
"Content-Length: 0\r\nUpgrade: TLS/1.0, HTTP/1.0\r\n\r\n");
"Content-Length: 0\r\nUpgrade: TLS/1.0, HTTP/1.1\r\n\r\n");
client->respcode = 426;
client->refbuf->len = strlen(client->refbuf->data);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment