X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-http;a=blobdiff_plain;f=http_headers_api.c;h=b2a2081e18ae79bd5cf8a1c601befd238972a08f;hp=5048266a8fddd949d3035295fb601cd71e5634fe;hb=7408a11c30c6d7cf0933ebbedabf9551db598bcd;hpb=0d925a2820b9d75b8e32c451fd400863e51e22fe diff --git a/http_headers_api.c b/http_headers_api.c index 5048266..b2a2081 100644 --- a/http_headers_api.c +++ b/http_headers_api.c @@ -255,15 +255,6 @@ PHP_HTTP_API STATUS _http_parse_headers_ex(const char *header, HashTable *header Z_ARRVAL(array) = headers; header_len = body ? body - header : strlen(header) + 1; - -/* - if (header_len < 2 || ((!lflf) && (!crlfcrlf) && (!strchr(header, ':')))) { - fprintf(stderr, "header_len: %lu, lflf: %p, crlfcrlf: %p, ':': %p\n(%s)\n", - header_len, lflf, crlfcrlf, strchr(header, ':'), header); - http_error(HE_WARNING, HTTP_E_MALFORMED_HEADERS, "Cannot parse too short or malformed HTTP headers"); - return FAILURE; - } -*/ line = header; while (header_len >= (size_t) (line - begin)) { @@ -290,16 +281,6 @@ PHP_HTTP_API STATUS _http_parse_headers_ex(const char *header, HashTable *header Z_ARRVAL(array) = headers; } else - /* - if ( (!strncmp(header, "HTTP/1.", lenof("HTTP/1."))) || - (!strncmp(line - lenof("HTTP/1.x" HTTP_CRLF) + value_len, "HTTP/1.", lenof("HTTP/1.")))) { - if (func) { - func(header, &headers, callback_data TSRMLS_CC); - Z_ARRVAL(array) = headers; - } - } else - */ - /* "header: value" pair */ if (colon) {