HTTP server: always send "Accept-Ranges: bytes" along with Content-Length, some clients depend on it to determine seekability
@@ -1606,6 +1606,10 @@ int http_MakeMessage(membuffer *buf, int http_major_version,
if (http_MakeMessage(buf, http_major_version, http_minor_version,
"shc", "CONTENT-LENGTH: ", bignum) != 0)
goto error_handler;
+ // Add accept ranges
+ if (http_MakeMessage(buf, http_major_version, http_minor_version,
+ "sc", "Accept-Ranges: bytes") != 0)
+ goto error_handler;
} else if (c == 'S' || c == 'U') {
/* SERVER or USER-AGENT header */
temp_str = (c == 'S') ? "SERVER: " : "USER-AGENT: ";
