komuw / ong

ong, is a Go http toolkit.
MIT License
16 stars 4 forks source link

bad redirect for subdomain #405

Closed komuw closed 5 months ago

komuw commented 5 months ago

https://github.com/komuw/ong/blob/00154b279ee724a9f2b22a2c10107912860ead1f/middleware/redirect.go#L80-L91

curl -vkL "http://hey.example.com" # note it is http not https

This gets redirected to https://example.com. It should be redirected to https://hey.example.com