You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@knox.apache.org by "Attila Magyar (Jira)" <ji...@apache.org> on 2023/09/28 14:34:00 UTC

[jira] [Created] (KNOX-2960) DefaultDispatch doesn't forward inbound request headers in case of requestType=OPTIONS

Attila Magyar created KNOX-2960:
-----------------------------------

             Summary: DefaultDispatch doesn't forward inbound request headers in case of requestType=OPTIONS
                 Key: KNOX-2960
                 URL: https://issues.apache.org/jira/browse/KNOX-2960
             Project: Apache Knox
          Issue Type: Bug
            Reporter: Attila Magyar
            Assignee: Attila Magyar


put/get/etc has copyRequestHeaderFields

{code}
   @Override
   public void doPut(URI url, HttpServletRequest request, HttpServletResponse response)
         throws IOException, URISyntaxException {
      final HttpPut method = new HttpPut(url);
      copyRequestHeaderFields(method, request, addExpect100Continue);
      final HttpEntity entity = createRequestEntity(request, addExpect100Continue);
      method.setEntity(entity);
      executeRequestWrapper(method, request, response);
   }
{code}

but OPTIONS doesn't

{code}

   @Override
   public void doOptions(URI url, HttpServletRequest request, HttpServletResponse response)
         throws IOException, URISyntaxException {
      HttpOptions method = new HttpOptions(url);
     executeRequestWrapper(method, request, response);
   }
{code}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)