Skip to content

Don't clobber Req opts with hackney opts - #1245

Open
mbklein wants to merge 1 commit into
ex-aws:mainfrom
nulib-labs:main
Open

Don't clobber Req opts with hackney opts#1245
mbklein wants to merge 1 commit into
ex-aws:mainfrom
nulib-labs:main

Conversation

@mbklein

@mbklein mbklein commented Jul 16, 2026

Copy link
Copy Markdown

ExAws v2.7.0 introduced a regression in which a Req-compatible option (receive_timeout) gets overwritten by a default if included in http_opts. The same issue already existed with the redirect option.

This PR replaces Keyword.put with Keyword.put_new to preserve the existing target option if it already exists, and adds tests for all cases (Req option present, hackney option present, both options present, no option present).

  • mix format
  • mix dialyzer
  • mix test

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.

1 participant