浏览代码

Merge pull request #73 from techno-fiend/master

add client request ajax header to php header
walkor 9 年之前
父节点
当前提交
5f4ae3fc82
共有 1 个文件被更改,包括 3 次插入0 次删除
  1. 3 0
      Protocols/Http.php

+ 3 - 0
Protocols/Http.php

@@ -156,6 +156,9 @@ class Http
                         $http_post_boundary      = '--' . $match[1];
                     }
                     break;
+                case 'x-requested-with':
+                    $_SERVER["HTTP_X_REQUESTED_WITH"] = $value;
+                    break;
             }
         }