- changed status to resolved
Accept header is hardcoded
Issue #496
resolved
Whe configuring an http host check, it seems the Accept
header cannot be overridden by the http headers
directive. For example:
check host example.com with address example.com
if failed
port 80 protocol http
with http headers [Accept: application/json]
and request /ping
then alert
Will send requests with an Accept: */*
header. This causes warnings in our server because the /ping resource can produce either application/json
or text/plain
responses.
I think it would make sense to let the control file specify this header.
Comments (1)
-
repo owner - Log in to comment
Fix
#496: Allow overriding the Accept HTTP header. Unless defined in the http headers array, default is 'Accept: /"→ <<cset 6b0a4690ae7c>>