[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] [taler-twister] branch master updated: do not take Host:-he
From: |
gnunet |
Subject: |
[GNUnet-SVN] [taler-twister] branch master updated: do not take Host:-header from request. |
Date: |
Fri, 07 Jun 2019 19:48:28 +0200 |
This is an automated email from the git hooks/post-receive script.
marcello pushed a commit to branch master
in repository twister.
The following commit(s) were added to refs/heads/master by this push:
new 3540f39 do not take Host:-header from request.
3540f39 is described below
commit 3540f39fb1a35714f23dedf5004e92c54f603d81
Author: Marcello Stanisci <address@hidden>
AuthorDate: Fri Jun 7 19:48:12 2019 +0200
do not take Host:-header from request.
---
src/twister/taler-twister-service.c | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/src/twister/taler-twister-service.c
b/src/twister/taler-twister-service.c
index bf83842..5e1e8cb 100644
--- a/src/twister/taler-twister-service.c
+++ b/src/twister/taler-twister-service.c
@@ -924,6 +924,14 @@ con_val_iter (void *cls,
(void) kind;
+ if (0 == strcmp (MHD_HTTP_HEADER_HOST,
+ key))
+ {
+ /* We don't take the host header as given in the request.
+ * We'll instead put the proxied service's hostname in it*/
+ return MHD_YES;
+ }
+
if ((0 == strcmp (MHD_HTTP_HEADER_ACCEPT_ENCODING,
key)) ||
(0 == strcmp (MHD_HTTP_HEADER_CONTENT_ENCODING,
--
To stop receiving notification emails like this one, please contact
address@hidden.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] [taler-twister] branch master updated: do not take Host:-header from request.,
gnunet <=