Skip to content

HTTP -> HTTPS redirection discards query param #163

@xiaq

Description

@xiaq
  1. Configure http://go/ex -> http://example.com
  2. Go to http://go/ex?foo=bar -> this redirects to http://example.com with no query param
  3. Go to https://go.$name.ts.net/ex?foo=bar -> this redirects to http://example.com/?foo=bar as expected

curl seems to confirm that the query param was lost in the HTTP -> HTTPS redirection:

~> curl -IL 'http://go/ex?foo=bar'
HTTP/1.1 302 Found
Content-Type: text/html; charset=utf-8
Location: https://go.REDACTED.ts.net/ex
Date: Thu, 13 Mar 2025 17:35:42 GMT

HTTP/1.1 302 Found
Location: http://example.com
Date: Thu, 13 Mar 2025 17:35:42 GMT

HTTP/1.1 200 OK
Content-Type: text/html
ETag: "84238dfc8092e5d9c0dac8ef93371a07:1736799080.121134"
Last-Modified: Mon, 13 Jan 2025 20:11:20 GMT
Cache-Control: max-age=544
Date: Thu, 13 Mar 2025 17:35:42 GMT
Connection: keep-alive

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