[PATCH] mod_proxy handling of chunked requests
am 10.03.2003 15:43:54 von Mathias HerbertsThis is a cryptographically signed message in MIME format.
--------------ms070103050703030001070706
Content-Type: multipart/mixed;
boundary="------------070607060805090106090806"
This is a multi-part message in MIME format.
--------------070607060805090106090806
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
The included quick patch should allow mod_proxy to pass chunked requests
as-is to origin servers.
The modification in proxy_http.c checks read_chunked to decide whether
or not to strip the Transfer-Encoding header.
Feedback appreciated,
Mathias.
--
-- Informatique du Credit Mutuel ---- Reseaux et Systemes Distribues
-- 32 rue Mirabeau -- Le Relecq-Kerhuon -- 29808 Brest Cedex 9, FRANCE
-- Tel +33298004653 - Fax +33298284005 - Mail Mathias.Herberts@gicm.fr
-- Key Fingerprint: 8778 D2FD 3B4A 6B33 10AB F503 63D0 ADAE 9112 03E4
--------------070607060805090106090806
Content-Type: text/plain;
name="mod_proxy-chunked.patch"
Content-Transfer-Encoding: base64
Content-Disposition: inline;
filename="mod_proxy-chunked.patch"
LS0tIGFwYWNoZV8xLjMuMjcvc3JjL21vZHVsZXMvcHJveHkvbW9kX3Byb3h5 LmMub3JpZwlN
b24gTWFyIDEwIDE1OjM2OjQ4IDIwMDMKKysrIGFwYWNoZV8xLjMuMjcvc3Jj L21vZHVsZXMv
cHJveHkvbW9kX3Byb3h5LmMJTW9uIE1hciAxMCAxNTozOToxNiAyMDAzCkBA IC0zMTksNyAr
MzE5LDcgQEAKICAgICAgICAgICAgICAgICBhcF9wc3ByaW50ZihyLT5wb29s LCAiJWxkIiwg
KG1heGZ3ZCA+IDApID8gbWF4ZndkIC0gMSA6IDApKTsKICAgICB9CiAKLSAg ICBpZiAoKHJj
ID0gYXBfc2V0dXBfY2xpZW50X2Jsb2NrKHIsIFJFUVVFU1RfQ0hVTktFRF9F UlJPUikpKQor
ICAgIGlmICgocmMgPSBhcF9zZXR1cF9jbGllbnRfYmxvY2sociwgUkVRVUVT VF9DSFVOS0VE
X1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ob3VsZCAq
b25seSogYmUgc3VwcHJlc3NlZAo=
--------------070607060805090106090806--
--------------ms070103050703030001070706
Content-Type: application/x-pkcs7-signature; name="smime.p7s"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="smime.p7s"
Content-Description: S/MIME Cryptographic Signature
MIAGCSqGSIb3DQEHAqCAMIACAQExCzAJBgUrDgMCGgUAMIAGCSqGSIb3DQEH AQAAoIIJ5DCC
AzgwggKhoAMCAQICEGZFcrfMdPXPY3ZFhNAukQEwDQYJKoZIhvcNAQEEBQAw gdExCzAJBgNV
BAYTAlpBMRUwEwYDVQQIEwxXZXN0ZXJuIENhcGUxEjAQBgNVBAcTCUNhcGUg VG93bjEaMBgG
A1UEChMRVGhhd3RlIENvbnN1bHRpbmcxKDAmBgNVBAsTH0NlcnRpZmljYXRp b24gU2Vydmlj
ZXMgRGl2aXNpb24xJDAiBgNVBAMTG1RoYXd0ZSBQZXJzb25hbCBGcmVlbWFp bCBDQTErMCkG
CSqGSIb3DQEJARYccGVyc29uYWwtZnJlZW1haWxAdGhhd3RlLmNvbTAeFw0w MDA4MzAwMDAw
MDBaFw0wNDA4MjcyMzU5NTlaMIGSMQswCQYDVQQGEwJaQTEVMBMGA1UECBMM V2VzdGVybiBD
YXBlMRIwEAYDVQQHEwlDYXBlIFRvd24xDzANBgNVBAoTBlRoYXd0ZTEdMBsG A1UECxMUQ2Vy
dGlmaWNhdGUgU2VydmljZXMxKDAmBgNVBAMTH1BlcnNvbmFsIEZyZWVtYWls IFJTQSAyMDAw
LjguMzAwgZ8wDQYJKoZIhvcNAQEBBQADgY0AMIGJAoGBAN4zMqZjxwklRT7S bngnZ4HF2ogZ
gpcO40QpimM1Km1wPPrcrvfudG8wvDOQf/k0caCjbZjxw0+iZdsN+kvx1t1h pfmFzVWaNRqd
knWoJ67Ycvm6AvbXsJHeHOmr4BgDqHxDQlBRh4M88Dm0m1SKE4f/s5udSWYA LQmJ7JRr6aFp
AgMBAAGjTjBMMCkGA1UdEQ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