garbados / dat-gateway

In-memory Dat to HTTP gateway
https://dat.bovid.space/
61 stars 13 forks source link

Infinite redirects #12

Closed da2x closed 5 years ago

da2x commented 5 years ago

Please revert e60a70b9fd95151e56519e13109b9966b8eb449a and 674d49d52bcc82675e61e99ffe3713dea53115c5.

They causes infinite redirects to /path/////////// in many situations. E.g. when serving with --redirect, the first part can be index.html, or image.jpeg (index.html////// or image.jpeg///// respectively.)

da2x commented 5 years ago

I've found a bunch of bugs in this area of the code. Will work on it tomorrow.