Skip to content

Fixed deserialising string/blob payloads when transferred with chunked-encoding#1292

Merged
mtdowling merged 1 commit into
smithy-lang:mainfrom
timocov:chunked-encoding-fix
Jul 13, 2026
Merged

Fixed deserialising string/blob payloads when transferred with chunked-encoding#1292
mtdowling merged 1 commit into
smithy-lang:mainfrom
timocov:chunked-encoding-fix

Conversation

@timocov

@timocov timocov commented Jul 13, 2026

Copy link
Copy Markdown
Contributor

Fixes #1291

What behavior changes?

Describe the observable difference in behavior before and after this change.

Fixed handling string/blob http payloads with chunked encoding.

Why is this change needed?

Explain the motivation: bug, feature request, refactor, performance, etc.

Negative (-1) content length is a valid value which indicates that the value just isn't known ahead of time. If a server responds with chunked encoding, the value will not be known ahead of time and it will result in the response being ignored (only when http payloads on string/blob was being used).

How was this validated?

List tests added, benchmarks run, or manual verification performed.

Run tests, built and test locally.

What should reviewers focus on?

Point reviewers to the files or sections that contain the interesting logic.

I guess it might be possible that whilst the content length is not known ahead of time but it resolves to empty response in the end it might cause some issues?

Additional Links

Related issues, design docs, or prior art.


By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@timocov

timocov commented Jul 13, 2026

Copy link
Copy Markdown
Contributor Author

Alternatively, how about something like c9c7901 instead?

@mtdowling
mtdowling enabled auto-merge (rebase) July 13, 2026 17:44
@mtdowling

Copy link
Copy Markdown
Member

Thanks! Good catch

@mtdowling
mtdowling merged commit 4f5016a into smithy-lang:main Jul 13, 2026
3 checks passed
@timocov
timocov deleted the chunked-encoding-fix branch July 14, 2026 19:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Chunked-encoded string/blob payload is being ignored

2 participants