This is an automated email from the ASF dual-hosted git repository.

amagyar pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/knox.git


The following commit(s) were added to refs/heads/master by this push:
     new 8e7513a66 KNOX-2960 - DefaultDispatch doesn't forward inbound request 
headers in case of requestType=OPTIONS (#798)
8e7513a66 is described below

commit 8e7513a66c6576172840c89ef1c3e576bec0322f
Author: Attila Magyar <[email protected]>
AuthorDate: Wed Oct 4 16:19:28 2023 +0200

    KNOX-2960 - DefaultDispatch doesn't forward inbound request headers in case 
of requestType=OPTIONS (#798)
---
 .../src/main/java/org/apache/knox/gateway/dispatch/DefaultDispatch.java  | 1 +
 1 file changed, 1 insertion(+)

diff --git 
a/gateway-spi/src/main/java/org/apache/knox/gateway/dispatch/DefaultDispatch.java
 
b/gateway-spi/src/main/java/org/apache/knox/gateway/dispatch/DefaultDispatch.java
index 58f06942d..0aba5297c 100644
--- 
a/gateway-spi/src/main/java/org/apache/knox/gateway/dispatch/DefaultDispatch.java
+++ 
b/gateway-spi/src/main/java/org/apache/knox/gateway/dispatch/DefaultDispatch.java
@@ -304,6 +304,7 @@ public class DefaultDispatch extends 
AbstractGatewayDispatch {
    public void doOptions(URI url, HttpServletRequest request, 
HttpServletResponse response)
          throws IOException {
       HttpOptions method = new HttpOptions(url);
+     copyRequestHeaderFields(method, request);
      executeRequestWrapper(method, request, response);
    }
 

Reply via email to