Uploaded image for project: 'ZABBIX BUGS AND ISSUES'
  1. ZABBIX BUGS AND ISSUES
  2. ZBX-14537

HTTP agent JSON Content-Type is not set by default when using custom headers

XMLWordPrintable

    • Team A
    • Sprint 37
    • 0.125

      Configure following HTTP agent item

      Expected:

      POST / HTTP/1.1
      Host: localhost:8080
      Accept: */*
      DNT: 1
      Content-Type: application/json
      Content-Length: 14
      
      { "foo":"bar"}
      

      Actual:

      POST / HTTP/1.1
      Host: localhost:8080
      Accept: */*
      DNT: 1
      Content-Length: 14
      Content-Type: application/x-www-form-urlencoded
      
      { "foo":"bar"}
      

      Zabbix shall check for Content-Type existence when setting default application/json Content-Type, instead it checks only for headers to exist.

            vso Vladislavs Sokurenko
            vso Vladislavs Sokurenko
            Team A
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: