Skip to content

Commit

Permalink
omit most automatically added headers
Browse files Browse the repository at this point in the history
  • Loading branch information
elerch committed Aug 19, 2024
1 parent a9f99c0 commit e5b6628
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/aws_http.zig
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,16 @@ pub const AwsHttp = struct {
.response_storage = .{ .dynamic = &resp_payload },
.raw_uri = true,
.location = .{ .url = url },
// we need full control over most headers. I wish libraries would do a
// better job of having default headers as an opt-in...
.headers = .{
.host = .omit,
.authorization = .omit,
.user_agent = .omit,
.connection = .default, // we can let the client manage this...it has no impact to us
.accept_encoding = .default, // accept encoding (gzip, deflate) *should* be ok
.content_type = .omit,
},
.extra_headers = headers.items,
});
// TODO: Need to test for payloads > 2^14. I believe one of our tests does this, but not sure
Expand Down

0 comments on commit e5b6628

Please sign in to comment.