Skip to content

Commit

Permalink
Fix AssertionError: Status must be a string (#715)
Browse files Browse the repository at this point in the history
Signed-off-by: Chris Marchbanks <csmarchbanks@gmail.com>
  • Loading branch information
csmarchbanks authored Oct 29, 2021
1 parent 6650d07 commit 88cd785
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions prometheus_client/exposition.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,8 +114,8 @@ def prometheus_app(environ, start_response):
params = parse_qs(environ.get('QUERY_STRING', ''))
if environ['PATH_INFO'] == '/favicon.ico':
# Serve empty response for browsers
status = '200 OK'
header = ('', '')
status = str('200 OK')
header = (str(''), str(''))
output = b''
else:
# Bake output
Expand Down

0 comments on commit 88cd785

Please sign in to comment.