/*
* HTTP method override for clients that can't use PUT/PATCH/DELETE. First, we check
* $_GET['_method']. If that is not set, we check for the HTTP_X_HTTP_METHOD_OVERRIDE
* header.
*/ if(isset($_GET['_method'])){ $request->set_method($_GET['_method']); }elseif(isset($_SERVER['HTTP_X_HTTP_METHOD_OVERRIDE'])){ $request->set_method($_SERVER['HTTP_X_HTTP_METHOD_OVERRIDE']); }