prometheus: fix regression after adding support for tracing headers (#16829)
This fixes a regression introduced by #16724 when datasource is configured to use HTTP method POST and testing the datasource which results in an 'options.headers is undefined'. Same error probably happens if datasource is configured to use basic auth and testing datasource.
Showing
Please
register
or
sign in
to comment