Skip to content

Commit cfcf77f

Browse files
author
Laurent Cozic
committed
Pass content-type to proxy
1 parent 14b47ff commit cfcf77f

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

proxy.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,10 @@
4646
}
4747
}
4848

49+
if (isset($_SERVER["CONTENT_TYPE"])) {
50+
$request_headers[] = 'Content-Type: ' . $_SERVER["CONTENT_TYPE"];
51+
}
52+
4953
// identify request method, url and params
5054
$request_method = $_SERVER['REQUEST_METHOD'];
5155
if ( 'GET' == $request_method ) {

0 commit comments

Comments
 (0)