Accept header is hardcoded

Issue #496 resolved
Thierry Monney created an issue

Whe configuring an http host check, it seems the Accept header cannot be overridden by the http headers directive. For example:

check host with address
    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)

  1. Log in to comment