Open ALX99 opened 3 months ago
Using /あ
for comparison, but using /%e3%81%82
when redirecting, so it causes an infinite loop.
If using EscapedPath
for comparison, responsing 404 not found
maybe we use req.URL.Path
for redirecting, not useing req.URL.String()
.
Using
/あ
for comparison, but using/%e3%81%82
when redirecting, so it causes an infinite loop.If using
EscapedPath
for comparison, responsing 404 not foundmaybe we use
req.URL.Path
for redirecting, not useingreq.URL.String()
.
ohhh... when it set Location
header, it will escape url.
Description
Enabling
RedirectFixedPath
sometimes leads to infinite redirectsHow to reproduce
Expectations
Actual result
Environment
go version: 1.23.0 gin version (or commit ref): v1.10.0 operating system: macOS Sequoia