twister

HTTP fault injector for testing
Log | Files | Refs | README | LICENSE

commit 3540f39fb1a35714f23dedf5004e92c54f603d81
parent d4f6731bb9ed5a5bedcae5cc950c3bf35699cf08
Author: Marcello Stanisci <stanisci.m@gmail.com>
Date:   Fri,  7 Jun 2019 19:48:12 +0200

do not take Host:-header from request.

Diffstat:
Msrc/twister/taler-twister-service.c | 8++++++++
1 file changed, 8 insertions(+), 0 deletions(-)

diff --git 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,