librespeed / speedtest-go

Go backend for LibreSpeed
GNU Lesser General Public License v3.0
733 stars 157 forks source link

Handle URLs with an extraneous /backend/ prefix #1

Closed fazalmajid closed 4 years ago

fazalmajid commented 4 years ago

speedtest_worker.js makes calls to /backend/empty and /backend/garbage instead of /empty and /garbage. I assume those are left over from the PHP version. While it's easy enough to work around with a nginx rewrite rule, or removing /backend/ from speedtest_worker.js, I just worked around by adding additional routes to cope with the extraneous /backend/

maddie commented 4 years ago

Thanks for your contribution!