Skip to content

404 when serving block device files #1503

@BlackFuffey

Description

@BlackFuffey

I wanted to use miniserve to transfer raw disk partition over network, but it would always return 404 not found instead of sending the file.

I used the following command line to serve

miniserve -i 10.0.0.240 /dev/nvme0n1p3

And doing wget "http://10.0.0.240:8080" would return 404 Not Found and log

[ERROR] Route / could not be found

using the same commands to transfer a regular file works as intended.

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