Skip to content

Accept URLs with square brackets #75

@matheuss-kb4

Description

@matheuss-kb4

It's not possible to proxy URLs with square brackets because URI does not like them:

irb(main):001> URI.parse('http://example.com/[id]/page.svelte')
(irb):1:in `<main>': bad URI(is not URI?): "http://example.com/[id]/page.svelte" (URI::InvalidURIError)

This is especially handy while proxying through Svelte apps, which use square brackets to identify parameters in URLs while routing: https://svelte.dev/docs/kit/routing

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