File tree 2 files changed +2
-2
lines changed
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):
124
124
def choose_encoder (accept_header ):
125
125
accept_header = accept_header or ''
126
126
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' :
128
128
return (openmetrics .exposition .generate_latest ,
129
129
openmetrics .exposition .CONTENT_TYPE_LATEST )
130
130
return (generate_latest , CONTENT_TYPE_LATEST )
Original file line number Diff line number Diff line change 4
4
5
5
from .. import core
6
6
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' )
8
8
'''Content type of the latest OpenMetrics text format'''
9
9
10
10
def generate_latest (registry ):
You can’t perform that action at this time.
0 commit comments