add support for OPTIONS http method
This commit is contained in:
1 parent
f651df6e1f
commit
ceb5336ca1
7 files changed
+41
-10
No files matched your search
@@ -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