Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Updates

  • Loading branch information...
commit 6d6fa7075fa1aecf8b412961602f9e942e50b41f 1 parent 7eb0941
@deepwinter authored
Showing with 4 additions and 1 deletion.
  1. +4 −0 addToApacheConf.txt
  2. +0 −1  restlog.php
View
4 addToApacheConf.txt
@@ -0,0 +1,4 @@
+<Location "/backend/XXX.php">
+ SetEnvIf Content-Type ^(multipart/form-data)(.*) NEW_CONTENT_TYPE=multipart/form-data-alternate$2 OLD_CONTENT_TYPE=$1$2
+ RequestHeader set Content-Type %{NEW_CONTENT_TYPE}e env=NEW_CONTENT_TYPE
+</Location>
View
1  restlog.php
@@ -3,7 +3,6 @@
$fh = fopen($myFile, 'a') or die("can't open file");
fwrite($fh, "\n\n---------------------------------------------------------------\n");
foreach($_SERVER as $h=>$v)
- if(ereg('HTTP_(.+)',$h,$hp))
fwrite($fh, "$h = $v\n");
fwrite($fh, "\r\n");
fwrite($fh, file_get_contents('php://input'));
Please sign in to comment.
Something went wrong with that request. Please try again.