We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
x-amz-content-sha256
1 parent 4584bcb commit 35d8979Copy full SHA for 35d8979
1 file changed
test/httpclient_test.cpp
@@ -201,10 +201,11 @@ client.head("https://postman-echo.com/get?foo0=bar1&foo2=bar2");
201
}
202
*/
203
204
+// We send it as a POST because I cannot find a PUT endpoint to validate
205
TEST(HTTP, HTTPPut) {
206
HttpClient client {};
207
std::string data = "This is expected to be sent back as part of response body";
- HttpBodyRequest req = client.put("https://postman-echo.com/post").body(data);
208
+ HttpBodyRequest req = client.post("https://postman-echo.com/post").body(data);
209
EXPECT_EQ(req.getBody(), data);
210
HttpResponse resp = req.execute();
211
EXPECT_TRUE(resp.is_ok());
0 commit comments