diff --git a/app/internal/http/server.go b/app/internal/http/server.go index e5761ce5f1..0b5e411665 100644 --- a/app/internal/http/server.go +++ b/app/internal/http/server.go @@ -278,6 +278,11 @@ func sendSimpleResponse(conn net.Conn, req *http.Request, statusCode int) error ProtoMinor: req.ProtoMinor, Header: http.Header{}, } + // Remove the "Content-Length: 0" header, some clients (e.g. ffmpeg) may not like it. + resp.ContentLength = -1 + // Also, prevent the "Connection: close" header. + resp.Close = false + resp.Uncompressed = true return resp.Write(conn) }