Commit 514e825a authored by Philipp Schafft's avatar Philipp Schafft 🦁

Fix: Corrected response and fixed TLS for 416 Request Range Not Satisfiable responses

parent be407ebb
Pipeline #102 passed with stage
in 43 seconds
......@@ -636,10 +636,7 @@ int fserve_client_create (client_t *httpclient, const char *path)
fail:
fclose (file);
httpclient->respcode = 416;
sock_write (httpclient->con->sock,
"HTTP/1.0 416 Request Range Not Satisfiable\r\n\r\n");
client_destroy (httpclient);
client_send_error(httpclient, 416, 1, "Request Range Not Satisfiable\r\n");
return -1;
}
......
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