okkur / torproxy

Caddy plugin to enable easy web to tor proxying
https://torproxy.okkur.org
Apache License 2.0
35 stars 6 forks source link

Follows the redirect responses in the backend #11

Closed erbesharat closed 4 years ago

erbesharat commented 4 years ago

What this PR does / why we need it: Follows the redirect responses in the backend without showing the user.

Which issue this PR fixes: fixes #7

Special notes for your reviewer: The for loop used to follow all the redirect responses doesn't feel good to me cause I think it makes the code harder to read but couldn't think of another approach. Would love to hear other thoughts.

stp-ip commented 4 years ago

Happy to merge, if you are ok with leaving the for loop.

erbesharat commented 4 years ago

It's fine with me. let's merge it :)