Explorar o código

Merge pull request #73 from techno-fiend/master

add client request ajax header to php header
walkor %!s(int64=9) %!d(string=hai) anos
pai
achega
5f4ae3fc82
Modificáronse 1 ficheiros con 3 adicións e 0 borrados
  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;
             }
         }