1. 03 Apr, 2018 3 commits
  2. 02 Apr, 2018 2 commits
  3. 01 Apr, 2018 1 commit
  4. 31 Mar, 2018 1 commit
  5. 30 Mar, 2018 4 commits
  6. 29 Mar, 2018 1 commit
  7. 28 Mar, 2018 2 commits
  8. 27 Mar, 2018 1 commit
  9. 26 Mar, 2018 5 commits
  10. 25 Mar, 2018 3 commits
  11. 24 Mar, 2018 5 commits
  12. 23 Mar, 2018 7 commits
  13. 22 Mar, 2018 3 commits
  14. 21 Mar, 2018 1 commit
  15. 20 Mar, 2018 1 commit
    • Christophe Jaillet's avatar
      Use 'ap_request_has_body()' instead of duplicating its implemenation. · 7dca1e0c
      Christophe Jaillet authored
      The logic in 'ap_request_has_body()' is:
          has_body = (!r->header_only
                      && (r->kept_body
                          || apr_table_get(r->headers_in, "Transfer-Encoding")
                          || ( (cls = apr_table_get(r->headers_in, "Content-Length"))
                              && (apr_strtoff(&cl, cls, &estr, 10) == APR_SUCCESS)
                              && (!*estr)
                              && (cl > 0) )
                          )
                      );
      So the test is slighly different from the original code. (but this looks fine to me)
      
      This also has the advantage to avoid a redundant call to 'apr_table_get()' and to improve readability.
      
      While at it, move the test '!r->expecting_100' a few lines above because it is cheap.
      
      git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1827374 13f79535-47bb-0310-9956-ffa450edef68
      7dca1e0c