[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] [taler-deployment] branch master updated: fix redirect for
From: |
gnunet |
Subject: |
[GNUnet-SVN] [taler-deployment] branch master updated: fix redirect for POST requests |
Date: |
Tue, 30 May 2017 16:43:02 +0200 |
This is an automated email from the git hooks/post-receive script.
marcello pushed a commit to branch master
in repository deployment.
The following commit(s) were added to refs/heads/master by this push:
new 370358f fix redirect for POST requests
370358f is described below
commit 370358f69b8b8aa6a98d1d60d63d9f0ba67cc3df
Author: Marcello Stanisci <address@hidden>
AuthorDate: Tue May 30 16:43:08 2017 +0200
fix redirect for POST requests
---
etc/nginx/sites-enabled/test.site | 10 ++++++++--
1 file changed, 8 insertions(+), 2 deletions(-)
diff --git a/etc/nginx/sites-enabled/test.site
b/etc/nginx/sites-enabled/test.site
index 6767197..b5c01b0 100644
--- a/etc/nginx/sites-enabled/test.site
+++ b/etc/nginx/sites-enabled/test.site
@@ -5,8 +5,14 @@ server {
bank.test.taler.net
shop.test.taler.net
exchange.test.taler.net;
- rewrite ^ https://$host$request_uri? break;
- return 307;
+
+ # 301-based ridirects allows the user agent to *change* the
+ # method used in the second request. This breaks all the API
+ # using POST, as some user agents do the second request using
+ # GET. 307 is meant to tell the user agent to not change the
+ # method in the second request.
+ if ($requests_method = POST) { return 307 https://$host$request_uri; }
+ return 301 https://$host$request_uri;
}
--
To stop receiving notification emails like this one, please contact
address@hidden
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] [taler-deployment] branch master updated: fix redirect for POST requests,
gnunet <=