Return http scheme according to upload scheme (non-https support when printing share url) #367

Closed
opened 2026-01-19 18:30:03 +00:00 by michael · 1 comment
Owner

Originally created by @darklow on GitHub.

https may not be always available or hard to configure if using docker containers etc.
It would be great if URL could be returned with the same http scheme that it was uploaded, now it always return https url even if upload was using http
Looks like https scheme is hardcoded:
7986596d2b/transfersh-server/handlers.go (L252)
Thanks

Originally created by @darklow on GitHub. `https` may not be always available or hard to configure if using docker containers etc. It would be great if URL could be returned with the same http scheme that it was uploaded, now it always return `https` url even if upload was using `http` Looks like `https` scheme is hardcoded: https://github.com/dutchcoders/transfer.sh/blob/7986596d2b06020bf0ba65ac1128ee8eedc522a5/transfersh-server/handlers.go#L252 Thanks
Author
Owner

@nl5887 commented on GitHub:

Hi Kaspars, could you try this with latest version? ;-) Should be fixed now.

@nl5887 commented on GitHub: Hi Kaspars, could you try this with latest version? ;-) Should be fixed now.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: dutchcoders/transfer.sh#367