Skip to content

Error when folder ends with a colon #1450

@hellodword

Description

@hellodword

Version: miniserve 0.27.1

Steps to reproduce:

cd `mktemp -d`

mkdir http:

touch http\:/foo.txt

docker run --rm -it -v `pwd`:/tmp -p 8080:8080 svenstaro/miniserve /tmp

Try to visit http://127.0.0.1:8080/http:/ , will get the segment ended with invalid character error.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions