gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] r28505 - libmicrohttpd/src/microspdy


From: gnunet
Subject: [GNUnet-SVN] r28505 - libmicrohttpd/src/microspdy
Date: Sun, 11 Aug 2013 23:54:12 +0200

Author: andreyu
Date: 2013-08-11 23:54:12 +0200 (Sun, 11 Aug 2013)
New Revision: 28505

Modified:
   libmicrohttpd/src/microspdy/applicationlayer.c
Log:
spdy: remove the restriction for HTTP method

Modified: libmicrohttpd/src/microspdy/applicationlayer.c
===================================================================
--- libmicrohttpd/src/microspdy/applicationlayer.c      2013-08-11 21:46:31 UTC 
(rev 28504)
+++ libmicrohttpd/src/microspdy/applicationlayer.c      2013-08-11 21:54:12 UTC 
(rev 28505)
@@ -155,28 +155,6 @@
                
                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,




reply via email to

[Prev in Thread] Current Thread [Next in Thread]