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

    Details

    • Team:
      Team A
    • Sprint:
      Sprint 37
    • Story Points:
      0.125

      Description

      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.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                vso Vladislavs Sokurenko
                Reporter:
                vso Vladislavs Sokurenko
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: