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/02/25 03:18:16 UTC

[GitHub] [apisix] Gallardot opened a new pull request #6444: docs: fix forward-auth plugin doc

Gallardot opened a new pull request #6444:
URL: https://github.com/apache/apisix/pull/6444


   ### What this PR does / why we need it:
   <!--- Why is this change required? What problem does it solve? -->
   <!--- If it fixes an open issue, please link to the issue here. -->
   
   Fixed some curl usage errors.
   
   ### Pre-submission checklist:
   
   <!--
   Please follow the PR manners:
   1. Use Draft if the PR is not ready to be reviewed
   2. Test is required for the feat/fix PR, unless you have a good reason
   3. Doc is required for the feat PR
   4. Use a new commit to resolve review instead of `push -f`
   5. If you need to resolve merge conflicts after the PR is reviewed, please merge master but do not rebase
   6. Use "request review" to notify the reviewer once you have resolved the review
   7. Only reviewer can click "Resolve conversation" to mark the reviewer's review resolved
   -->
   
   * [ ] Did you explain what problem does this PR solve? Or what new features have been added?
   * [ ] Have you added corresponding test cases?
   * [ ] Have you modified the corresponding document?
   * [ ] Is this PR backward compatible? **If it is not backward compatible, please discuss on the [mailing list](https://github.com/apache/apisix/tree/master#community) first**
   


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



[GitHub] [apisix] Gallardot commented on a change in pull request #6444: docs: fix forward-auth plugin doc

Posted by GitBox <gi...@apache.org>.
Gallardot commented on a change in pull request #6444:
URL: https://github.com/apache/apisix/pull/6444#discussion_r816842105



##########
File path: docs/en/latest/plugins/forward-auth.md
##########
@@ -117,32 +117,35 @@ We can perform the following three tests.
 1. **request_headers** Send Authorization header from `client` to `authorization` service
 
 ```shell
-$ curl http://127.0.0.1:9080/headers -H 'Authorization: 123'
-{
+curl http://127.0.0.1:9080/headers -H 'Authorization: 123' \
+-d '{

Review comment:
       Good catch! I changed this to two text blocks. PTAL!




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



[GitHub] [apisix] spacewander merged pull request #6444: docs: fix forward-auth plugin doc

Posted by GitBox <gi...@apache.org>.
spacewander merged pull request #6444:
URL: https://github.com/apache/apisix/pull/6444


   


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



[GitHub] [apisix] bzp2010 commented on a change in pull request #6444: docs: fix forward-auth plugin doc

Posted by GitBox <gi...@apache.org>.
bzp2010 commented on a change in pull request #6444:
URL: https://github.com/apache/apisix/pull/6444#discussion_r815436745



##########
File path: docs/en/latest/plugins/forward-auth.md
##########
@@ -117,32 +117,35 @@ We can perform the following three tests.
 1. **request_headers** Send Authorization header from `client` to `authorization` service
 
 ```shell
-$ curl http://127.0.0.1:9080/headers -H 'Authorization: 123'
-{
+curl http://127.0.0.1:9080/headers -H 'Authorization: 123' \
+-d '{

Review comment:
       Incorrent modification, this is the response.

##########
File path: docs/en/latest/plugins/forward-auth.md
##########
@@ -117,32 +117,35 @@ We can perform the following three tests.
 1. **request_headers** Send Authorization header from `client` to `authorization` service
 
 ```shell
-$ curl http://127.0.0.1:9080/headers -H 'Authorization: 123'
-{
+curl http://127.0.0.1:9080/headers -H 'Authorization: 123' \
+-d '{
     "headers": {
         "Authorization": "123",
         "Next": "More-headers"
     }
-}
+}'
 ```
 
 2. **upstream_headers** Send `authorization` service response header to the `upstream`
 
 ```shell
-$ curl http://127.0.0.1:9080/headers -H 'Authorization: 321'
-{
+curl http://127.0.0.1:9080/headers -H 'Authorization: 321' \
+-d '{

Review comment:
       ditto




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



[GitHub] [apisix] Gallardot commented on a change in pull request #6444: docs: fix forward-auth plugin doc

Posted by GitBox <gi...@apache.org>.
Gallardot commented on a change in pull request #6444:
URL: https://github.com/apache/apisix/pull/6444#discussion_r816842274



##########
File path: docs/en/latest/plugins/forward-auth.md
##########
@@ -117,32 +117,35 @@ We can perform the following three tests.
 1. **request_headers** Send Authorization header from `client` to `authorization` service
 
 ```shell
-$ curl http://127.0.0.1:9080/headers -H 'Authorization: 123'
-{
+curl http://127.0.0.1:9080/headers -H 'Authorization: 123' \
+-d '{
     "headers": {
         "Authorization": "123",
         "Next": "More-headers"
     }
-}
+}'
 ```
 
 2. **upstream_headers** Send `authorization` service response header to the `upstream`
 
 ```shell
-$ curl http://127.0.0.1:9080/headers -H 'Authorization: 321'
-{
+curl http://127.0.0.1:9080/headers -H 'Authorization: 321' \
+-d '{

Review comment:
       good catch! I changed this to two text blocks. PTAL!




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