Skip to content

Commit e3902ea

Browse files
authored
Don't send an empty HTTP header. (#1101)
This breaks strict middleware.. Signed-off-by: Nils O. Selåsdal <[email protected]>
1 parent 23ab826 commit e3902ea

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

prometheus_client/exposition.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ def prometheus_app(environ, start_response):
132132
elif environ['PATH_INFO'] == '/favicon.ico':
133133
# Serve empty response for browsers
134134
status = '200 OK'
135-
headers = [('', '')]
135+
headers = []
136136
output = b''
137137
else:
138138
# Note: For backwards compatibility, the URI path for GET is not

0 commit comments

Comments
 (0)