aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrey Uzunov <andrey.uzunov@gmail.com>2013-08-11 21:54:12 +0000
committerAndrey Uzunov <andrey.uzunov@gmail.com>2013-08-11 21:54:12 +0000
commitc0f2ca60ba248c98e51da4efa78e8a4f9a61c133 (patch)
tree8b8949bd61658657f1a0599e607d9562d16dd73e
parent4b0a8adbcc7d22cc86bb07dc56f7367dc96ad1ed (diff)
downloadlibmicrohttpd-c0f2ca60ba248c98e51da4efa78e8a4f9a61c133.tar.gz
libmicrohttpd-c0f2ca60ba248c98e51da4efa78e8a4f9a61c133.zip
spdy: remove the restriction for HTTP method
-rw-r--r--src/microspdy/applicationlayer.c22
1 files changed, 0 insertions, 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,
155 155
156 return SPDY_YES; 156 return SPDY_YES;
157 } 157 }
158
159 //ignore everything but GET
160 if(strcasecmp("GET",method) && strcasecmp("POST",method))
161 {
162 SPDYF_DEBUG("received method '%s'", method);
163 static char * html = "Method not implemented. libmicrospdy supports now only GET.";
164 struct SPDY_Response *response = SPDY_build_response(501, NULL, SPDY_HTTP_VERSION_1_1, NULL, html, strlen(html));
165 if(NULL==response)
166 {
167 SPDY_destroy_request(request);
168 return SPDY_YES;
169 }
170
171 if(SPDY_YES != SPDY_queue_response(request, response, true, false, &spdy_callback_response_done, NULL))
172 {
173 SPDY_destroy_response(response);
174 SPDY_destroy_request(request);
175 }
176
177 //SPDY_destroy_request(request);
178 return SPDY_YES;
179 }
180 158
181 //call client's callback function to notify 159 //call client's callback function to notify
182 daemon->new_request_cb(daemon->cls, 160 daemon->new_request_cb(daemon->cls,