8000 Fix AssertionError: Status must be a string (#715) · Nevon/client_python@88cd785 · GitHub
[go: up one dir, main page]

Skip to content

Commit 88cd785

Browse files
authored
Fix AssertionError: Status must be a string (prometheus#715)
Signed-off-by: Chris Marchbanks <csmarchbanks@gmail.com>
1 parent 6650d07 commit 88cd785
< 8000 div class="prc-PageLayout-PageLayoutContent-jzDMn">

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

prometheus_client/exposition.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -114,8 +114,8 @@ def prometheus_app(environ, start_response):
114114
params = parse_qs(environ.get('QUERY_STRING', ''))
115115
if environ['PATH_INFO'] == '/favicon.ico':
116116
# Serve empty response for browsers
117-
status = '200 OK'
118-
header = ('', '')
117+
status = str('200 OK')
118+
header = (str(''), str(''))
119119
output = b''
120120
else:
121121
# Bake output

0 commit comments

Comments
 (0)
0