diff --git a/src/main/response.c b/src/main/response.c index af0f36a..97e59c2 100644 --- a/src/main/response.c +++ b/src/main/response.c @@ -253,4 +253,7 @@ void li_response_send_error_page(liConnection *con) { )); li_chunkqueue_append_string(con->out, html); + li_http_header_remove(vr->response.headers, CONST_STR_LEN("transfer-encoding")); + li_http_header_remove(vr->response.headers, CONST_STR_LEN("content-encoding")); + li_http_header_remove(vr->response.headers, CONST_STR_LEN("etag")); }