From 03b097c6a6f47a875f74f84f4a114e2820d07039 Mon Sep 17 00:00:00 2001 From: tastytea Date: Sat, 11 Jan 2020 16:20:33 +0100 Subject: Fix patch() and put() requests without parameters. Connection::patch() and Connection::put() without parameters were making a POST request. --- include/connection.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/connection.hpp b/include/connection.hpp index d746a5c..536123e 100644 --- a/include/connection.hpp +++ b/include/connection.hpp @@ -184,7 +184,7 @@ public: [[nodiscard]] inline answer_type patch(const endpoint_variant &endpoint) { - return post(endpoint, {}); + return patch(endpoint, {}); } /*! @@ -210,7 +210,7 @@ public: [[nodiscard]] inline answer_type put(const endpoint_variant &endpoint) { - return post(endpoint, {}); + return put(endpoint, {}); } /*! -- cgit v1.2.3-54-g00ecf