commit c0f2ca60ba248c98e51da4efa78e8a4f9a61c133
parent 4b0a8adbcc7d22cc86bb07dc56f7367dc96ad1ed
Author: Andrey Uzunov <andrey.uzunov@gmail.com>
Date: Sun, 11 Aug 2013 21:54:12 +0000
spdy: remove the restriction for HTTP method
Diffstat:
1 file changed, 0 insertions(+), 22 deletions(-)
diff --git a/src/microspdy/applicationlayer.c b/src/microspdy/applicationlayer.c
@@ -155,28 +155,6 @@ spdy_handler_new_stream (void *cls,
return SPDY_YES;
}
-
- //ignore everything but GET
- if(strcasecmp("GET",method) && strcasecmp("POST",method))
- {
- SPDYF_DEBUG("received method '%s'", method);
- static char * html = "Method not implemented. libmicrospdy supports now only GET.";
- struct SPDY_Response *response = SPDY_build_response(501, NULL, SPDY_HTTP_VERSION_1_1, NULL, html, strlen(html));
- if(NULL==response)
- {
- SPDY_destroy_request(request);
- return SPDY_YES;
- }
-
- if(SPDY_YES != SPDY_queue_response(request, response, true, false, &spdy_callback_response_done, NULL))
- {
- SPDY_destroy_response(response);
- SPDY_destroy_request(request);
- }
-
- //SPDY_destroy_request(request);
- return SPDY_YES;
- }
//call client's callback function to notify
daemon->new_request_cb(daemon->cls,