From 514e825a811daa923efa2eb56035c22cceecf3eb Mon Sep 17 00:00:00 2001 From: Philipp Schafft Date: Sat, 21 Apr 2018 10:25:44 +0000 Subject: [PATCH] Fix: Corrected response and fixed TLS for 416 Request Range Not Satisfiable responses --- src/fserve.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/fserve.c b/src/fserve.c index cda10674..94a6e961 100644 --- a/src/fserve.c +++ b/src/fserve.c @@ -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; }