diff options
author | tastytea | 2020-01-11 16:20:33 +0100 |
---|---|---|
committer | tastytea | 2020-01-11 16:21:44 +0100 |
commit | 03b097c6a6f47a875f74f84f4a114e2820d07039 (patch) | |
tree | 11f8ea0e5ff7eab573400515a5128187296c8451 | |
parent | 905a5aae0e4a1eb7bfedab5ba6b7c6a22763237b (diff) | |
download | mastodonpp-03b097c6a6f47a875f74f84f4a114e2820d07039.tar mastodonpp-03b097c6a6f47a875f74f84f4a114e2820d07039.tar.gz mastodonpp-03b097c6a6f47a875f74f84f4a114e2820d07039.zip |
Fix patch() and put() requests without parameters.
Connection::patch() and Connection::put() without parameters were making a POST
request.
-rw-r--r-- | include/connection.hpp | 4 |
1 files 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, {}); } /*! |