diff options
author | thegeorg <[email protected]> | 2025-05-12 15:51:24 +0300 |
---|---|---|
committer | thegeorg <[email protected]> | 2025-05-12 16:06:27 +0300 |
commit | d629bb70c8773d2c0c43f5088ddbb5a86d8c37ea (patch) | |
tree | 4f678e0d65ad08c800db21c657d3b0f71fafed06 /contrib/restricted/aws/aws-c-http/source/h1_encoder.c | |
parent | 92c4b696d7a1c03d54e13aff7a7c20a078d90dd7 (diff) |
Update contrib/restricted/aws libraries to nixpkgs 24.05
commit_hash:f8083acb039e6005e820cdee77b84e0a6b6c6d6d
Diffstat (limited to 'contrib/restricted/aws/aws-c-http/source/h1_encoder.c')
-rw-r--r-- | contrib/restricted/aws/aws-c-http/source/h1_encoder.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/contrib/restricted/aws/aws-c-http/source/h1_encoder.c b/contrib/restricted/aws/aws-c-http/source/h1_encoder.c index 1899d2f4025..277dce94633 100644 --- a/contrib/restricted/aws/aws-c-http/source/h1_encoder.c +++ b/contrib/restricted/aws/aws-c-http/source/h1_encoder.c @@ -403,10 +403,7 @@ int aws_h1_encoder_message_init_from_response( goto error; } - err = aws_byte_buf_init(&message->outgoing_head_buf, allocator, head_total_len); - if (err) { - return AWS_OP_ERR; - } + aws_byte_buf_init(&message->outgoing_head_buf, allocator, head_total_len); bool wrote_all = true; @@ -489,9 +486,9 @@ static size_t s_calculate_chunk_line_size(const struct aws_http1_chunk_options * size_t chunk_line_size = MAX_ASCII_HEX_CHUNK_STR_SIZE + CRLF_SIZE; for (size_t i = 0; i < options->num_extensions; ++i) { struct aws_http1_chunk_extension *chunk_extension = options->extensions + i; - chunk_line_size += sizeof(';'); + chunk_line_size += 1 /* ; */; chunk_line_size += chunk_extension->key.len; - chunk_line_size += sizeof('='); + chunk_line_size += 1 /* = */; chunk_line_size += chunk_extension->value.len; } return chunk_line_size; |