Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Datasette server redirects //example.com/ to https://example.com #2429

Open
psd opened this issue Sep 17, 2024 · 0 comments
Open

Datasette server redirects //example.com/ to https://example.com #2429

psd opened this issue Sep 17, 2024 · 0 comments

Comments

@psd
Copy link

psd commented Sep 17, 2024

The datasette server command 302 redirects paths such as //example.com/ to '//example.com' which is followed by curl and browsers to 'https://example.com'.

Note, the path needs to begin with double-slash and end in a slash.

There's a log of how to reproduce the issue locally in this gist.

I've been unable to reproduce this issue on production servers, so could be something to flag more strongly in documentation if this is expected behaviour in development.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant