Fix patch() and put() requests without parameters.

Connection::patch() and Connection::put() without parameters were making a POST
request.
This commit is contained in:
tastytea 2020-01-11 16:20:33 +01:00
parent 905a5aae0e
commit 03b097c6a6
Signed by: tastytea
GPG Key ID: CFC39497F1B26E07

View File

@ -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, {});
}
/*!