]> git.tdb.fi Git - libs/net.git/blobdiff - source/server.cpp
Add functions for parsing and building URIs and query strings
[libs/net.git] / source / server.cpp
index 04eea524ec895637ae34d7c302a2fe5b621d89a0..2e427b974af5ce7a3da4231f596c314235c94463 100644 (file)
@@ -103,7 +103,7 @@ void Server::client_data_available(Client &cl)
                                unsigned colon=addr_str.find(':');
                                cl.request->set_header("-Client-Host", addr_str.substr(0, colon));
 
-                               if(cl.request->get_method()!="GET")
+                               if(cl.request->get_method()!="GET" && cl.request->get_method()!="POST")
                                {
                                        response=new Response(NOT_IMPLEMENTED);
                                        response->add_content("Method not implemented");