Ajax: improve content-type detection

Fixes gh-2584
Closes gh-2643
This commit is contained in:
Oleg Gaidarenko
2015-10-12 19:56:46 +03:00
parent cb087ce41d
commit 239169bb2e
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']
?>