Page MenuHomePhabricator

D15258.id.diff
No OneTemporary

D15258.id.diff

diff --git a/src/applications/diffusion/controller/DiffusionServeController.php b/src/applications/diffusion/controller/DiffusionServeController.php
--- a/src/applications/diffusion/controller/DiffusionServeController.php
+++ b/src/applications/diffusion/controller/DiffusionServeController.php
@@ -427,11 +427,14 @@
'$PATH'));
}
+ // NOTE: We do not set HTTP_CONTENT_ENCODING here, because we already
+ // decompressed the request when we read the request body, so the body is
+ // just plain data with no encoding.
+
$env = array(
'REQUEST_METHOD' => $_SERVER['REQUEST_METHOD'],
'QUERY_STRING' => $query_string,
'CONTENT_TYPE' => $request->getHTTPHeader('Content-Type'),
- 'HTTP_CONTENT_ENCODING' => $request->getHTTPHeader('Content-Encoding'),
'REMOTE_ADDR' => $_SERVER['REMOTE_ADDR'],
'GIT_PROJECT_ROOT' => $repository_root,
'GIT_HTTP_EXPORT_ALL' => '1',

File Metadata

Mime Type
text/plain
Expires
Oct 15 2024, 12:48 AM (4 w, 6 d ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6710678
Default Alt Text
D15258.id.diff (939 B)

Event Timeline