Explorar o código

For "Range" requests to zip files, return "416 Range Not Satisfiable"

bel %!s(int64=8) %!d(string=hai) anos
pai
achega
b3cdb1ba32
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/civetweb.c

+ 1 - 1
src/civetweb.c

@@ -7990,7 +7990,7 @@ handle_static_file_request(struct mg_connection *conn,
 		if (filep->stat.is_gzipped) {
 			mg_send_http_error(
 			    conn,
-			    501,
+			    416, /* 416 = Range Not Satisfiable */
 			    "%s",
 			    "Error: Range requests in gzipped files are not supported");
 			(void)mg_fclose(