From: Schanzenbach, Martin Date: Tue, 20 Nov 2018 11:57:08 +0000 (+0100) Subject: fix cords through proxy X-Git-Tag: v0.11.0~235 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=a0d77ca83403ff8ae8c4c81395b95faebecbdd4a;p=oweals%2Fgnunet.git fix cords through proxy --- diff --git a/src/gns/gnunet-gns-proxy.c b/src/gns/gnunet-gns-proxy.c index 9f664e4dd..a502e0b65 100644 --- a/src/gns/gnunet-gns-proxy.c +++ b/src/gns/gnunet-gns-proxy.c @@ -1229,8 +1229,10 @@ curl_check_hdr (void *buffer, /* Ignore transfer encoding, set automatically by MHD if required */ goto cleanup; } - if (0 == strcasecmp (MHD_HTTP_HEADER_LOCATION, - hdr_type)) + if ((0 == strcasecmp (MHD_HTTP_HEADER_LOCATION, + hdr_type)) || + (0 == strcasecmp (MHD_HTTP_HEADER_ACCESS_CONTROL_ALLOW_ORIGIN, + hdr_type))) { char *leho_host;