Skip to content

Overload connect function to accept binary host - #906

Merged
benoitc merged 2 commits into
benoitc:masterfrom
TBK145:patch-1
Jul 14, 2026
Merged

Overload connect function to accept binary host#906
benoitc merged 2 commits into
benoitc:masterfrom
TBK145:patch-1

Conversation

@TBK145

@TBK145 TBK145 commented Jul 13, 2026

Copy link
Copy Markdown
Contributor

This was present in 1.* versions: https://github.com/benoitc/hackney/blob/1.25.0/src/hackney_connect.erl#L29-L30

It breaks some of our dependencies, so I added it back in the main hackney.erl

TBK145 and others added 2 commits July 13, 2026 16:12
A -spec between the two connect/4 clauses split them into separate
function definitions, causing redefinition errors. Combine the binary
Host clause with the existing one and widen the spec to string() | binary().
@benoitc

benoitc commented Jul 14, 2026

Copy link
Copy Markdown
Owner

Thanks @TBK145 for restoring this. Merged.

@benoitc
benoitc merged commit 398edbd into benoitc:master Jul 14, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants