Skip to content

Commit

Permalink
add comments
Browse files Browse the repository at this point in the history
  • Loading branch information
waahm7 committed Jan 10, 2025
1 parent 8f65026 commit 6852ff4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions source/s3_request_messages.c
Original file line number Diff line number Diff line change
Expand Up @@ -471,6 +471,7 @@ struct aws_http_message *aws_s3_get_source_object_size_message_new(
goto error_cleanup;
}
if (source_uri != NULL && source_uri->self_size > 0) {
/* Parse source host header and path from the provided URI */
struct aws_byte_cursor host = *aws_uri_host_name(source_uri);
struct aws_byte_cursor path = *aws_uri_path(source_uri);
struct aws_http_header host_header = {
Expand All @@ -487,6 +488,7 @@ struct aws_http_message *aws_s3_get_source_object_size_message_new(
return message;
}

/* Parse the source host header and path from the x-amz-copy-source header and the destination URI */
struct aws_byte_buf head_object_host_header;
AWS_ZERO_STRUCT(head_object_host_header);

Expand Down

0 comments on commit 6852ff4

Please sign in to comment.