ASF Bugzilla – Attachment 26899 Details for
Bug 51080
[PATCH] mod_isapi does not support Except:100-Continue HTTP protocol as IIS
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch to fix mod_isapi not supporting Except:100-Continue HTTP protocol
Patch_to_fix_modIsapi_NotSupportingExcept100ContinueProtocolAsIIS.unified.diff.patch (text/plain), 1.50 KB, created by
Thangaraj AntonyCrouse
on 2011-04-18 21:30:52 UTC
(
hide
)
Description:
Patch to fix mod_isapi not supporting Except:100-Continue HTTP protocol
Filename:
MIME Type:
Creator:
Thangaraj AntonyCrouse
Created:
2011-04-18 21:30:52 UTC
Size:
1.50 KB
patch
obsolete
>--- httpd-2.2.17_orig/modules/arch/win32/mod_isapi.c 2010-03-01 21:30:54.000000000 -0800 >+++ httpd-2.2.17_merge_modIsapiExpect100/modules/arch/win32/mod_isapi.c 2011-04-03 21:56:12.015625000 -0700 >@@ -1500,6 +1500,26 @@ > cid->ecb->ReadClient = ReadClient; > cid->ecb->ServerSupportFunction = ServerSupportFunction; > >+ /* Chunked mode POST's (Expect: 100-continue) are transparently >+ * supported by IIS Http.sys kernel driver, i.e., IIS driver by >+ * default acknowledges 100(continue) to expect 100-continue POST >+ * protocol to pull down the POST data and below code segment >+ * imitates IIS HTTP.sys kernel driver behavior >+ */ >+ if (r->expecting_100 == 1) >+ { >+ /* Set status to 200, so that http core (http_filters.c, >+ * ap_http_filter() function, line 334 -> apr_pstrcat(f->r->pool, >+ * AP_SERVER_PROTOCOL, " ", ap_get_status_line(100),... ) gets >+ * invoked to send the continue (100) response to client on next >+ * ap_read call. For 100-continue protocol details refer RFC >+ * http://www.w3.org/Protocols/rfc2616/rfc2616-sec8.html#sec8.2.3 >+ */ >+ r->status = HTTP_OK; >+ ap_log_rerror(APLOG_MARK, APLOG_INFO, 0, r, >+ "Thread: %d, Expect 100-continue issued by client: %s,%s", >+ GetCurrentThreadId(), r->connection->remote_ip, r->uri); >+ } > /* Set up client input */ > res = ap_setup_client_block(r, REQUEST_CHUNKED_ERROR); > if (res) {
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 51080
: 26899