Skip to content

Proxied requests confuse the URI parser #248

@SGrondin

Description

@SGrondin

When I set the system-wide HTTP proxy on Debian to forward all traffic to a Cohttp application, the calls come in as GET //simongrondin.name/files/fifty.txt instead of GET http://simongrondin.name/files/fifty.txt.

The URI parser gets confused and interprets them like this:

Uri.to_string (Request.uri req)
> http://simongrondin.namehttp//simongrondin.name/files/fifty.txt

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