add support for OPTIONS http method
This commit is contained in:
@@ -1305,6 +1305,9 @@ void App::CheckRequestMethod()
|
||||
else
|
||||
if( pt::to_lower(cur.request->env_request_method[0]) == 'd' )
|
||||
cur.request->method = Request::delete_;
|
||||
else
|
||||
if( pt::to_lower(cur.request->env_request_method[0]) == 'o' )
|
||||
cur.request->method = Request::options;
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user