openwrt / asu

An image on demand server for OpenWrt based distributions
https://sysupgrade.openwrt.org
GNU General Public License v2.0
321 stars 80 forks source link

api: redirect double slashes #936

Closed aparcar closed 1 month ago

aparcar commented 1 month ago

This was an issue in the past where people would set the upgrade server URL to something with a trailing slash, resulting requests containing a duplicate slash.

Redirect double slashes to single slashes to solve the issue.

codecov[bot] commented 1 month ago

Codecov Report

Attention: Patch coverage is 60.00000% with 2 lines in your changes missing coverage. Please review.

Project coverage is 87.59%. Comparing base (5e65dec) to head (df6328e). Report is 90 commits behind head on main.

Files Patch % Lines
asu/main.py 60.00% 2 Missing :warning:
Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #936 +/- ## ========================================== + Coverage 80.75% 87.59% +6.84% ========================================== Files 15 14 -1 Lines 977 1008 +31 ========================================== + Hits 789 883 +94 + Misses 188 125 -63 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.