X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-http;a=blobdiff_plain;f=http_message_api.c;h=93c4bf1d5cbb1ba027511b45d3f2db12d769b59e;hp=4be4c1758e2f8c223952ef23f9961163c2a94dbe;hb=4fcbd8e8ae31611c5197ff2369673b5939fc2b80;hpb=32e91737086db53bb1fd9ed9f79d693c43ec459f diff --git a/http_message_api.c b/http_message_api.c index 4be4c17..93c4bf1 100644 --- a/http_message_api.c +++ b/http_message_api.c @@ -12,16 +12,11 @@ /* $Id$ */ -#ifdef HAVE_CONFIG_H -# include "config.h" -#endif - +#define HTTP_WANT_SAPI #define HTTP_WANT_CURL #define HTTP_WANT_ZLIB #include "php_http.h" -#include "SAPI.h" - #include "php_http_api.h" #include "php_http_encoding_api.h" #include "php_http_headers_api.h" @@ -233,9 +228,7 @@ PHP_HTTP_API http_message *_http_message_parse_ex(http_message *msg, const char if ( !strcasecmp(Z_STRVAL_P(c), "gzip") || !strcasecmp(Z_STRVAL_P(c), "x-gzip") || - !strcasecmp(Z_STRVAL_P(c), "deflate") || - !strcasecmp(Z_STRVAL_P(c), "compress") || - !strcasecmp(Z_STRVAL_P(c), "x-compress")) { + !strcasecmp(Z_STRVAL_P(c), "deflate")) { http_encoding_inflate(PHPSTR_VAL(msg), PHPSTR_LEN(msg), &decoded, &decoded_len); }