From 85be5768c807b431efee8329b3cabc1b0cf74bea Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=2E=20K=C3=A4rkk=C3=A4inen?= Date: Sun, 1 Mar 2020 12:15:16 +0200 Subject: [PATCH] Remove keep-alive header from responses. First of all, it should say timeout= which wasn't the case with existing implementation, and secondly none of the other web servers I tried include this header. --- tests/test_response.py | 1 - 1 file changed, 1 deletion(-) diff --git a/tests/test_response.py b/tests/test_response.py index 3bfce480..ff23b3b8 100644 --- a/tests/test_response.py +++ b/tests/test_response.py @@ -82,7 +82,6 @@ def test_response_header(app): request, response = app.test_client.get("/") assert dict(response.headers) == { "connection": "keep-alive", - "keep-alive": str(app.config.KEEP_ALIVE_TIMEOUT), "content-length": "11", "content-type": "application/json", }