You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by GitBox <gi...@apache.org> on 2022/03/16 02:17:03 UTC

[GitHub] [apisix] spacewander commented on pull request #6600: feat: support for having port in host header when pass_host = node and port is not standard

spacewander commented on pull request #6600:
URL: https://github.com/apache/apisix/pull/6600#issuecomment-1068661619


   @wilson-1024 
   You can apply:
   ```
   diff --git t/node/upstream.t t/node/upstream.t
   index feee95bd..12b7123d 100644
   --- t/node/upstream.t
   +++ t/node/upstream.t
   @@ -565,10 +565,8 @@ passed
    --- request
    GET /uri
    --- skip_nginx: 5: < 1.19.0
   ---- response_body
   -uri: /uri
   -host: localhost:1980
   -x-real-ip: 127.0.0.1
   +--- response_body eval
   +qr/host: localhost:1980/
    --- no_error_log
    [error]
   
   @@ -623,12 +621,9 @@ passed
   
   
    === TEST 24: hit route
   +--- log_level: debug
    --- request
    GET /uri
    --- skip_nginx: 5: < 1.19.0
   ---- response_body
   -uri: /uri
   -host: localhost:1980
   -x-real-ip: 127.0.0.1
    --- error_log
   -proxy request to 127.0.0.1:1980
   +Host: 127.0.0.1:1979
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org