We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 9e6e775 + 81dc45b commit 322d44aCopy full SHA for 322d44a
deploy.php
@@ -205,9 +205,18 @@ function endScript($msg = "",$display = false) {
205
if (!function_exists('getallheaders')) {
206
function getallheaders() {
207
$headers = [];
208
+ if (isset($_SERVER['CONTENT_TYPE']))
209
+ $headers['Content-Type'] = $_SERVER['CONTENT_TYPE'];
210
+ if (isset($_SERVER['CONTENT_LENGTH']))
211
+ $headers['Content-Length'] = $_SERVER['CONTENT_LENGTH'];
212
foreach ($_SERVER as $name => $value) {
213
if (substr($name, 0, 5) == 'HTTP_') {
- $headers[str_replace('', '-', ucwords(strtolower(str_replace('_', '', substr($name, 5)))))] = $value;
214
+ $name = substr($name, 5);
215
+ $name = str_replace('_', '', $name);
216
+ $name = ucwords(strtolower($name));
217
+ $name = str_replace('', '-', $name);
218
+ $name = str_replace('X-Github', 'X-GitHub', $name);
219
+ $headers[$name] = $value;
220
}
221
222
return $headers;
AltStyle によって変換されたページ (->オリジナル) / アドレス: モード: デフォルト 音声ブラウザ ルビ付き 配色反転 文字拡大 モバイル
0 commit comments