From 160ba08074827f0ddecaf611dd9f9b15593be9c1 Mon Sep 17 00:00:00 2001 From: Dirk Engling Date: Thu, 18 Apr 2024 14:50:51 +0200 Subject: Only have huge downloads (aka chunked) be application/octet-stream --- ot_http.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ot_http.c b/ot_http.c index b70d38d..cd2dfc1 100644 --- a/ot_http.c +++ b/ot_http.c @@ -165,7 +165,7 @@ ssize_t http_sendiovecdata(const int64 sock, struct ot_workstruct *ws, int iovec encoding = "Content-Encoding: bzip2\r\n"; if (!(cookie->flag & STRUCT_HTTP_FLAG_CHUNKED)) - header_size = asprintf(&header, "HTTP/1.1 200 OK\r\nContent-Type: application/octet-stream\r\n%sContent-Length: %zd\r\n\r\n", encoding, size); + header_size = asprintf(&header, "HTTP/1.1 200 OK\r\nContent-Type: text/plain\r\n%sContent-Length: %zd\r\n\r\n", encoding, size); else { if (!(cookie->flag & STRUCT_HTTP_FLAG_CHUNKED_IN_TRANSFER)) { header_size = -- cgit v1.2.3