Ajax: improve content-type detection

Cherry-picked from 239169bb2e
Fixes gh-2584
Closes gh-2643
This commit is contained in:
Oleg Gaidarenko
2015-10-12 19:56:46 +03:00
parent 2a8341787a
commit 3ced5abe5c
4 changed files with 112 additions and 5 deletions

View File

@@ -0,0 +1,5 @@
<?php
$type = $_REQUEST['content-type'];
header("Content-type: $type");
echo $_REQUEST['response']
?>