[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] [taler-deployment] branch master updated: fix redirection f
From: |
gnunet |
Subject: |
[GNUnet-SVN] [taler-deployment] branch master updated: fix redirection for 'demo' |
Date: |
Tue, 30 May 2017 16:50:10 +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 dbe4761 fix redirection for 'demo'
dbe4761 is described below
commit dbe476150be19b74f837de13c406a42f80b3e251
Author: Marcello Stanisci <address@hidden>
AuthorDate: Tue May 30 16:50:12 2017 +0200
fix redirection for 'demo'
---
etc/nginx/sites-enabled/demo.site | 9 ++++++++-
1 file changed, 8 insertions(+), 1 deletion(-)
diff --git a/etc/nginx/sites-enabled/demo.site
b/etc/nginx/sites-enabled/demo.site
index 0fa9ed1..e72e87c 100644
--- a/etc/nginx/sites-enabled/demo.site
+++ b/etc/nginx/sites-enabled/demo.site
@@ -6,7 +6,14 @@ server {
shop.demo.taler.net
exchange.demo.taler.net;
- rewrite ^ https://$host$request_uri? permanent;
+ # 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 ($request_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 redirection for 'demo',
gnunet <=