Skip to content

Commit ed325e6

Browse files
committed
Implement also HEAD request
1 parent 51c6081 commit ed325e6

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/aws.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -257,6 +257,10 @@ unique_ptr<HTTPResponse> AWSInput::ExecuteRequest(ClientContext &context, Aws::H
257257
*/
258258
}
259259

260+
if (method == Aws::Http::HttpMethod::HTTP_HEAD) {
261+
HeadRequestInfo head_request(request_url, res, *params);
262+
return http_util.Request(head_request);
263+
}
260264
if (method == Aws::Http::HttpMethod::HTTP_GET) {
261265
GetRequestInfo get_request(request_url, res, *params, nullptr, nullptr);
262266
return http_util.Request(get_request);

0 commit comments

Comments
 (0)