Commit 8a7db7c0 authored by Stefan Fritsch's avatar Stefan Fritsch
Browse files

Force base 10 when parsing the Content-Length. It doesn't matter in this

case, but in general using strto*(..., 0) for parsing HTTP headers is a bug.


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1180689 13f79535-47bb-0310-9956-ffa450edef68
parent 1cbfd00e
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1011,7 +1011,7 @@ static int proxy_handler(request_rec *r)
                        }
                        cl_a = apr_table_get(r->headers_in, "Content-Length");
                        if (cl_a) {
                            apr_strtoff(&cl, cl_a, &end, 0);
                            apr_strtoff(&cl, cl_a, &end, 10);
                            /*
                             * The request body is of length > 0. We cannot
                             * retry with a direct connection since we already