diff options
author | Christian Grothoff <christian@grothoff.org> | 2017-09-14 21:07:43 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2017-09-14 21:07:43 +0200 |
commit | 1c3e78724343e48c9fbc26b9985085b5d25ba540 (patch) | |
tree | 96eadc9e377b0dd5fc36d55e34f42064f03cd588 /src/exchange/taler-exchange-httpd_keystate.c | |
parent | f346e89ceb7eecf6de1abd4b2b794926d671b72c (diff) | |
download | exchange-1c3e78724343e48c9fbc26b9985085b5d25ba540.tar.gz exchange-1c3e78724343e48c9fbc26b9985085b5d25ba540.tar.bz2 exchange-1c3e78724343e48c9fbc26b9985085b5d25ba540.zip |
be more precise about encoding HTTP bodies
Diffstat (limited to 'src/exchange/taler-exchange-httpd_keystate.c')
-rw-r--r-- | src/exchange/taler-exchange-httpd_keystate.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/exchange/taler-exchange-httpd_keystate.c b/src/exchange/taler-exchange-httpd_keystate.c index 32a619e7b..47b10a9b7 100644 --- a/src/exchange/taler-exchange-httpd_keystate.c +++ b/src/exchange/taler-exchange-httpd_keystate.c @@ -1496,10 +1496,11 @@ TEH_KS_handler_keys (struct TEH_RequestHandler *rh, MHD_add_response_header (response, MHD_HTTP_HEADER_CONTENT_TYPE, rh->mime_type)); - if (MHD_YES != - MHD_add_response_header (response, - MHD_HTTP_HEADER_CONTENT_ENCODING, - "deflate")) + if ( (MHD_YES == comp) && + (MHD_YES != + MHD_add_response_header (response, + MHD_HTTP_HEADER_CONTENT_ENCODING, + "deflate")) ) { GNUNET_break (0); MHD_destroy_response (response); |