Skip to content

Closed - #83

Closed
Hackwar wants to merge 2 commits into
joomla-framework:4.x-devfrom
Hackwar:4.x-socket-redirects
Closed

Hackwar wants to merge 2 commits into
joomla-framework:4.x-devfrom
Hackwar:4.x-socket-redirects

Conversation

@Hackwar

@Hackwar Hackwar commented Nov 12, 2026 •

Copy link
Copy Markdown
Contributor

No description provided.

Hackwar and others added 2 commits November 12, 2026 23:54
The socket transport followed every 3xx response with a Location header by
calling itself recursively with the unresolved Location, so a relative
Location connected to localhost, a redirect loop never ended and
follow_location was ignored. The credentials, cookies and the body of the
original request were sent to whatever host the Location named.

Resolve the Location against the request URI, honour follow_location, stop
after 20 redirects, repeat a 303 (and a POST answered with 301/302) as GET,
and drop the credentials, Cookie and Host headers when the redirect leads to
another origin.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The stub server may listen on ::1 only when it is started for localhost.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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