Bugfix for Post method not allowed.

This commit is contained in:
dogan yazar 2011-04-12 00:54:19 +02:00
parent 91dd236c55
commit 4432a2e551
2 changed files with 3 additions and 6 deletions

View file

@ -235,8 +235,6 @@ is_method_handled(connection_state_t* conn_state, const char* method)
/*other method types can be added here if needed*/
if(strncmp(method, http_get_string, 3) == 0) {
conn_state->request.request_type = HTTP_METHOD_GET;
} else if(strncmp(method, http_head_string, 4) == 0) {
conn_state->request.request_type = HTTP_METHOD_HEAD;
} else if (strncmp(method, http_post_string, 4) == 0) {
conn_state->request.request_type = HTTP_METHOD_POST;
} else if (strncmp(method, http_put_string, 3) == 0) {