diff options
Diffstat (limited to 'src/microspdy/applicationlayer.c')
-rw-r--r-- | src/microspdy/applicationlayer.c | 22 |
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, |