TigerGxl opened a new issue #2257:
URL: https://github.com/apache/apisix/issues/2257


   ### Issue description
   
   
   ### Environment
   
   * apisix version (cmd: `apisix version`):1.5
   * OS:ubuntu16.04
   
   i use plugin http_to_https and set ret_code 307, like below.
   ```
   {
     "priority": 0,
     "plugins": {
       "redirect": {
         "ret_code": 307,
         "http_to_https": true
       }
     },
     "uris": [
       "/*"
     ],
     "id": "1a5f4337d",
     "hosts": [
       "demo-apisix.xxxxxxx.com"
     ],
     "upstream": {
       "nodes": {
         "172.16.3.2:80": 100
       },
       "hash_on": "vars",
       "type": "roundrobin"
     }
   }
   ```
   when client sends **POST** reqeust with **http**.it's not working, apisix 
should  return 307 and client sends a new request with https again, in fact, 
apisix return 301 and client sends a new request with **https** and the method 
is **GET**
   
   
![image](https://user-images.githubusercontent.com/32395903/93565351-cce64680-f9bd-11ea-9349-80aaaacda6f3.png)
   
![image](https://user-images.githubusercontent.com/32395903/93565479-074fe380-f9be-11ea-953d-c884d6647f9b.png)
   
   


----------------------------------------------------------------
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:
[email protected]


Reply via email to