Author: rhuijben
Date: Mon Nov 16 11:06:31 2015
New Revision: 1714552

URL: http://svn.apache.org/viewvc?rev=1714552&view=rev
Log:
* buckets/request_buckets.c
  (serf_incoming_rq_parse_rqline): And tweak comment and error code.

Modified:
    serf/trunk/buckets/request_buckets.c

Modified: serf/trunk/buckets/request_buckets.c
URL: 
http://svn.apache.org/viewvc/serf/trunk/buckets/request_buckets.c?rev=1714552&r1=1714551&r2=1714552&view=diff
==============================================================================
--- serf/trunk/buckets/request_buckets.c (original)
+++ serf/trunk/buckets/request_buckets.c Mon Nov 16 11:06:31 2015
@@ -351,14 +351,12 @@ static apr_status_t serf_incoming_rq_par
         return SERF_ERROR_TRUNCATED_STREAM;
 
     spc2++;
-    /* ctx->linebuf.line should be of form: 'HTTP/1.1 200 OK',
-    but we also explicitly allow the forms 'HTTP/1.1 200' (no reason)
-    and 'HTTP/1.1 401.1 Logon failed' (iis extended error codes)
-    NOTE: Since r1699995 linebuf.line is always NUL terminated string. */
+    /* spc2 should now be of form 'HTTP/1.1'
+       NOTE: Since r1699995 linebuf.line is always NUL terminated string. */
     res = apr_date_checkmask(spc2, "HTTP/#.#");
     if (!res) {
         /* Not an HTTP response?  Well, at least we won't understand it. */
-        return SERF_ERROR_BAD_HTTP_RESPONSE;
+        return SERF_ERROR_TRUNCATED_STREAM;
     }
 
     ctx->version = SERF_HTTP_VERSION(spc2[5] - '0',


Reply via email to