File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -124,7 +124,7 @@ def sample_line(s):
124124def choose_encoder (accept_header ):
125125 accept_header = accept_header or ''
126126 for accepted in accept_header .split (',' ):
127- if accepted == 'text /openmetrics; version=0.0.1' :
127+ if accepted == 'application /openmetrics-text ; version=0.0.1' :
128128 return (openmetrics .exposition .generate_latest ,
129129 openmetrics .exposition .CONTENT_TYPE_LATEST )
130130 return (generate_latest , CONTENT_TYPE_LATEST )
Original file line number Diff line number Diff line change 44
55from .. import core
66
7- CONTENT_TYPE_LATEST = str ('text /openmetrics; version=0.0.1; charset=utf-8' )
7+ CONTENT_TYPE_LATEST = str ('application /openmetrics-text ; version=0.0.1; charset=utf-8' )
88'''Content type of the latest OpenMetrics text format'''
99
1010def generate_latest (registry ):
You can’t perform that action at this time.
0 commit comments