Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Parse URL-encoded symbols in paths #261

Open
jonhoo opened this issue Aug 20, 2018 · 0 comments
Open

Parse URL-encoded symbols in paths #261

jonhoo opened this issue Aug 20, 2018 · 0 comments

Comments

@jonhoo
Copy link

jonhoo commented Aug 20, 2018

It looks like superstatic does not parse out URL-encoded values in URL paths:

$ superstatic &
$ echo foobar > "foo:bar.txt"
$ curl 'localhost:3474/foo:bar.txt'
foobar
$ curl 'localhost:3474/foo%3Abar.txt'
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Error</title>
</head>
<body>
<pre>Cannot GET /foo%3Abar.txt</pre>
</body>
</html>

This also then affects firebase serve.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant