]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
Update YaHTTP to 93e75d1412d7dafab54f68b7efb9a4e30fd8b9fe 5542/head
authorRemi Gacogne <remi.gacogne@powerdns.com>
Wed, 19 Jul 2017 13:32:31 +0000 (15:32 +0200)
committerRemi Gacogne <remi.gacogne@powerdns.com>
Wed, 19 Jul 2017 13:32:31 +0000 (15:32 +0200)
Fix a warning reported by Coverity.

ext/yahttp/yahttp/reqresp.hpp
ext/yahttp/yahttp/router.hpp

index 2e2b609cb5da82c809f16629f4ea5a10c441b364..d9e7a197282c5a257264f0f51e0c9c965e5ca07f 100644 (file)
@@ -132,6 +132,7 @@ protected:
 #ifdef HAVE_CPP_FUNC_PTR
       this->renderer = rhs.renderer;
 #endif
+      this->is_multipart = rhs.is_multipart;
     };
     HTTPBase& operator=(const HTTPBase& rhs) {
       this->url = rhs.url; this->kind = rhs.kind;
@@ -144,6 +145,7 @@ protected:
 #ifdef HAVE_CPP_FUNC_PTR
       this->renderer = rhs.renderer;
 #endif
+      this->is_multipart = rhs.is_multipart;
       return *this;
     };
 public:
index 915155f8a603f3afead9acd124076c892843c438..145123b9fa09705847f2309c7a709b84b9786884 100644 (file)
@@ -65,6 +65,7 @@ If method is left empty, it will match any method. Name is also optional, but ne
 
     static std::pair<std::string, std::string> URLFor(const std::string &name, const strstr_map_t& arguments) { return router.urlFor(name,arguments); }; //<! Generates url from named route and arguments. Missing arguments are assumed empty
     static const TRouteList& GetRoutes() { return router.routes; } //<! Reference to route list 
+    static void Clear() { router.routes.clear(); } //<! Clear all routes
 
     TRouteList routes; //<! Instance variable for routes
   };