From c0f2ca60ba248c98e51da4efa78e8a4f9a61c133 Mon Sep 17 00:00:00 2001 From: Andrey Uzunov Date: Sun, 11 Aug 2013 21:54:12 +0000 Subject: spdy: remove the restriction for HTTP method --- src/microspdy/applicationlayer.c | 22 ---------------------- 1 file changed, 22 deletions(-) diff --git a/src/microspdy/applicationlayer.c b/src/microspdy/applicationlayer.c index 17a00289..50960a09 100644 --- 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, -- cgit v1.2.3