omit most automatically added headers
	
		
			
	
		
	
	
		
	
		
			All checks were successful
		
		
	
	
		
			
				
	
				AWS-Zig Build / build-zig-amd64-host (push) Successful in 1m28s
				
			
		
		
	
	
				
					
				
			
		
			All checks were successful
		
		
	
	AWS-Zig Build / build-zig-amd64-host (push) Successful in 1m28s
				
			This commit is contained in:
		
							parent
							
								
									a9f99c0205
								
							
						
					
					
						commit
						e5b662873a
					
				
					 1 changed files with 10 additions and 0 deletions
				
			
		|  | @ -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 | ||||
|  |  | |||
		Loading…
	
	Add table
		
		Reference in a new issue