lwsl_info("file is being provided in gzip\n");
}
+ if (
#if defined(LWS_WITH_RANGES)
- if (ranges < 2 && content_type && content_type[0])
+ ranges < 2 &&
+#endif
+ content_type && content_type[0])
if (lws_add_http_header_by_token(wsi, WSI_TOKEN_HTTP_CONTENT_TYPE,
(unsigned char *)content_type,
strlen(content_type), &p, end))
return -1;
+#if defined(LWS_WITH_RANGES)
if (ranges >= 2) { /* multipart byteranges */
strncpy(wsi->u.http.multipart_content_type, content_type,
sizeof(wsi->u.http.multipart_content_type) - 1);