Skip to content

Implement filename parsing from reply headers#155

Merged
achempion merged 1 commit into
masterfrom
content-disposition
Jul 16, 2026
Merged

Implement filename parsing from reply headers#155
achempion merged 1 commit into
masterfrom
content-disposition

Conversation

@achempion

Copy link
Copy Markdown
Member

context

related #154

  • Prepares Waffle for pluggable http client architecture

@achempion
achempion force-pushed the content-disposition branch from c1bda72 to 3003a2e Compare July 16, 2026 11:33
Comment thread lib/waffle/content_disposition.ex Outdated
Comment on lines +103 to +106
case decode_extended_value(value) do
{:ok, filename} -> filename
:error -> nil
end

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It misses case when :unicode.characters_to_binary(value, :latin1, :utf8) in decode_charset/2 returns error or incomplete ? https://www.erlang.org/doc/apps/stdlib/unicode.html#characters_to_list/2

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can you please give an example with a failing test case?

@klacointe klacointe Jul 16, 2026

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You fixed it in the last force-push 👌

@achempion
achempion merged commit c0dbc12 into master Jul 16, 2026
1 check passed
@achempion
achempion deleted the content-disposition branch July 16, 2026 16:07
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.

2 participants