فهرست منبع

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;
             }
         }