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

Return URL with SSL by default. #20

Open
8dcc opened this issue Dec 30, 2022 · 0 comments
Open

Return URL with SSL by default. #20

8dcc opened this issue Dec 30, 2022 · 0 comments

Comments

@8dcc
Copy link

8dcc commented Dec 30, 2022

If you upload a file using:

$ curl -T file.txt oshi.at

http://oshi.at/a/... [Admin]
http://oshi.at/... [Download]
http://5ety7tpkim5me6eszuwcje7bmy25pbtrjtue7zkqqgziljwqy3rrikqd.onion/... [Tor download]

The response is always the http:// address. I am guessing this is because curl is translating oshi.at to http://oshi.at, since doing:

$ curl -T file.txt https://oshi.at

https://oshi.at/a/... [Admin]
https://oshi.at/... [Download]
http://5ety7tpkim5me6eszuwcje7bmy25pbtrjtue7zkqqgziljwqy3rrikqd.onion/... [Tor download]

Returns the https:// address.

The issue is that doing:

$ curl http://oshi.at/...
<html>
<head><title>301 Moved Permanently</title></head>
<body bgcolor="white">
<center><h1>301 Moved Permanently</h1></center>
<hr><center>nginx</center>
</body>
</html>

Always returns this HTML response because it expects the https:// address. I am not sure if this is intentional but I wanted to point it out since you could just always return the https:// URL, even when uploading to http://oshi.at.

@kkarhan kkarhan mentioned this issue Apr 18, 2023
8 tasks
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