Open bruj0 opened 1 year ago
This is not a bug but a feature as those are not valid HTTP links, and should not be used. The author of ladder should use something like /?path=... instead
I will see if I can add a way to disable the slash stripping (can't guarantee it's possible)
Thanks for taking a look!
This is not a bug but a feature as those are not valid HTTP links, and should not be used. The author of ladder should use something like /?path=... instead
That is debatable however this is a valid link and is still treated the same:
https://paywall.example.net/https%3A%2F%2Fexample.com
Ie, converting :// to url encoding.
I will see if I can add a way to disable the slash stripping (can't guarantee it's possible)
One possible user friendly option would be that if "Block common Bots" is disabled then no changes are made to the request and passed as is.
Cheers!
The thing is I think this it is a built-in Go behaviour, because even with StrictSlash(false) I still observe the behaviour, but will investigate
What happened?
I am trying to use a paywall remover service: https://github.com/kubero-dev/ladder
Everything works as expected except when the URL is added to the request, one of the
/
is stripped:Original: https://paywall.example.net/https://example.com
Redirected: https://paywall.example.net/https:/example.com
What should have happened?
The original URL in the request should be forwarded as is.
How to reproduce the bug?
Relevant log output
No response
Other details
No response
System details