httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rpl...@apache.org
Subject svn commit: r664150 - /httpd/httpd/trunk/server/protocol.c
Date Fri, 06 Jun 2008 21:56:13 GMT
Author: rpluem
Date: Fri Jun  6 14:56:13 2008
New Revision: 664150

URL: http://svn.apache.org/viewvc?rev=664150&view=rev
Log:
* Don't send 100-Continue when there was no Expect: 100-continue in the
  request headers.

Modified:
    httpd/httpd/trunk/server/protocol.c

Modified: httpd/httpd/trunk/server/protocol.c
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/server/protocol.c?rev=664150&r1=664149&r2=664150&view=diff
==============================================================================
--- httpd/httpd/trunk/server/protocol.c (original)
+++ httpd/httpd/trunk/server/protocol.c Fri Jun  6 14:56:13 2008
@@ -1648,6 +1648,14 @@
                       "Status is %d - not sending interim response", r->status);
         return;
     }
+    if ((r->status == HTTP_CONTINUE) && !r->expecting_100) {
+        /*
+         * Don't send 100-Continue when there was no Expect: 100-continue
+         * in the request headers. For origin servers this is a SHOULD NOT
+         * for proxies it is a MUST NOT according to RFC 2616 8.2.3
+         */
+        return;
+    }
 
     x.f = r->connection->output_filters;
     x.bb = apr_brigade_create(r->pool, r->connection->bucket_alloc);



Mime
View raw message