• Kenton Varda's avatar
    Extend kj::Url with option to not collapse empty path/query components. · a358282e
    Kenton Varda authored
    This is to fix a complaint about Cloudflare Workers removing these components as requests pass through, which apparently breaks someone's funky URLs.
    
    Arguably "." and ".." processing presents a similar problems. But, allowing ".." to pass through is much more likely to lead to security problems. Browsers will generally process "." and ".." before sending a request (whereas they won't collapse double-slashes), so we're following their lead here.
    a358282e
Name
Last commit
Last update
..
gtest.h Loading commit data...
gzip-test.c++ Loading commit data...
gzip.c++ Loading commit data...
gzip.h Loading commit data...
http-test.c++ Loading commit data...
http.c++ Loading commit data...
http.h Loading commit data...
make-test-certs.sh Loading commit data...
readiness-io-test.c++ Loading commit data...
readiness-io.c++ Loading commit data...
readiness-io.h Loading commit data...
tls-test.c++ Loading commit data...
tls.c++ Loading commit data...
tls.h Loading commit data...
url-test.c++ Loading commit data...
url.c++ Loading commit data...
url.h Loading commit data...