Remove keep-alive header from responses. First of all, it should say timeout=<value> which wasn't the case with existing implementation, and secondly none of the other web servers I tried include this header.

This commit is contained in:
L. Kärkkäinen 2020-03-01 12:15:16 +02:00
parent 7f41c5fa6b
commit 85be5768c8

View File

@ -82,7 +82,6 @@ def test_response_header(app):
request, response = app.test_client.get("/") request, response = app.test_client.get("/")
assert dict(response.headers) == { assert dict(response.headers) == {
"connection": "keep-alive", "connection": "keep-alive",
"keep-alive": str(app.config.KEEP_ALIVE_TIMEOUT),
"content-length": "11", "content-length": "11",
"content-type": "application/json", "content-type": "application/json",
} }