Skip to content
Browse files

Cleanup.

  • Loading branch information...
1 parent 734c11b commit 24d9f603ee7bad9a4f69b1d76259c45f6bdd4e27 @4ydx committed Nov 24, 2011
Showing with 1 addition and 5 deletions.
  1. +1 −5 upload/post.php
View
6 upload/post.php
@@ -4,11 +4,7 @@
$index = preg_replace('/[^A-Za-z0-9_]/', '', $_SERVER['HTTP_X_ID']);
file_put_contents($home.'uploads/'.$index, file_get_contents("php://input"));
header("X-ID: {$_SERVER['HTTP_X_ID']}");
-header("X-INDEX: {$_SERVER['HTTP_X_DISPLAY_INDEX']}");
header("X-FILE-SIZE: {$_SERVER['HTTP_X_FILE_SIZE']}");
header("X-FILE-NAME: {$_SERVER['HTTP_X_FILE_NAME']}");
-echo '{ "status" : "OK", '.
- '"id" : "'.$_SERVER['HTTP_X_ID'].'", '.
- '"index" : "'.$_SERVER['HTTP_X_INDEX'].
- '" }';
+echo '{ "status" : "OK", "id" : "'.$_SERVER['HTTP_X_ID'].'" }';
?>

0 comments on commit 24d9f60

Please sign in to comment.
Something went wrong with that request. Please try again.