Accept content type parameters such as text/plain;version=0.0.4
Closes #12. References influxdata/telegraf#6523.
This commit is contained in:
parent
de8a51c6f3
commit
789c07fd4e
|
|
@ -34,7 +34,7 @@ init(Req, _State) ->
|
|||
|
||||
content_types_provided(ReqData, Context) ->
|
||||
%% Since Prometheus 2.0 Protobuf is no longer supported
|
||||
{[{<<"text/plain">>, generate_response}], ReqData, Context}.
|
||||
{[{{<<"text">>, <<"plain">>, '*'}, generate_response}], ReqData, Context}.
|
||||
|
||||
is_authorized(ReqData, Context) ->
|
||||
{true, ReqData, Context}.
|
||||
|
|
|
|||
Loading…
Reference in New Issue