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 2021/05/18 14:27:44 UTC

[GitHub] [apisix] Firstsawyou commented on a change in pull request #3556: feat: support rewrite HTTP method

Firstsawyou commented on a change in pull request #3556:
URL: https://github.com/apache/apisix/pull/3556#discussion_r634437710



##########
File path: t/plugin/proxy-rewrite2.t
##########
@@ -175,3 +175,14 @@ GET /echo
 X-Forwarded-Proto: grpc
 --- response_headers
 X-Forwarded-Proto: https
+
+=== TEST 6: rewrite HTTP method (GET to PUT)
+--- request
+GET /hello
+--- response_body
+uri: /plugin_proxy_rewrite
+host: localhost
+scheme: http
+method: GET
+--- error_log eval
+qr/changed HTTP method from GET to PUT/

Review comment:
       A blank line is required at the end of the file.




-- 
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.

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