mirror of
https://github.com/apache/httpd.git
synced 2025-08-08 15:02:10 +03:00
mod_lua: Remove ETAG, Content-Length, and Content-MD5 when a LuaOutputFilter
is configured without mod_filter. [Eric Covener] git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1519483 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
@@ -377,6 +377,12 @@ static apr_status_t lua_setup_filter_ctx(ap_filter_t* f, request_rec* r, lua_fil
|
||||
*/
|
||||
rc = lua_resume(L, 1);
|
||||
if (rc == LUA_YIELD) {
|
||||
if (f->frec->providers == NULL) {
|
||||
/* Not wired by mod_filter */
|
||||
apr_table_unset(r->headers_out, "Content-Length");
|
||||
apr_table_unset(r->headers_out, "Content-MD5");
|
||||
apr_table_unset(r->headers_out, "ETAG");
|
||||
}
|
||||
return OK;
|
||||
}
|
||||
else {
|
||||
|
Reference in New Issue
Block a user