Skip to content

Parse URL-encoded symbols in paths #261

@jonhoo

Description

@jonhoo

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions