Uploaded image for project: 'Red Hat 3scale API Management'
  1. Red Hat 3scale API Management
  2. THREESCALE-7023

HEAD requests converted to GET requests

    XMLWordPrintable

Details

    • No
    • Hide
      • Configure APIcast 2.8 with a mapping rule equal to HEAD /
      • Set up an upstream or tunnel that shows the HTTP request method in the logs or response
      • Send a HEAD request to APIcast
      • See APIcast logs print a HEAD request but the upstream logs a GET request
      Show
      Configure APIcast 2.8 with a mapping rule equal to HEAD / Set up an upstream or tunnel that shows the HTTP request method in the logs or response Send a HEAD request to APIcast See APIcast logs print a HEAD request but the upstream logs a GET request
    • Hide

      Add the following to the deploymentConfig:

      command:
        - bash
        - '-c'
        - sed -i 's/proxy_cache apicast_cache;*$/proxy_cache apicast_cache; proxy_cache_convert_head off;/' src/conf.d/apicast.conf && apicast
      
      Show
      Add the following to the deploymentConfig: command: - bash - '-c' - sed -i 's/proxy_cache apicast_cache;*$/proxy_cache apicast_cache; proxy_cache_convert_head off;/' src/conf.d/apicast.conf && apicast

    Description

      Current behaviour

      When a HEAD request is sent to APIcast it's logged as a HEAD request but sent to the upstream as a GET request.

      Expected behaviour

      When a HEAD request is sent it is proxy_passed to the upstream as a HEAD request unless explicit configuration tells the gateway not to do that.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              rhn-support-keprice Kevin Price
              Eloy Coto Eloy Coto
              David Rajnoha David Rajnoha
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: