We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fab091d commit 45a1287Copy full SHA for 45a1287
handlers/public.go
@@ -197,7 +197,7 @@ func (h *Handler) handleDelete(c *gin.Context) {
197
198
func (h *Handler) getURLOrigin(c *gin.Context) string {
199
protocol := "http"
200
- if c.Request.TLS != nil || util.GetConfig().UseSSL {
+ if c.Request.TLS != nil || c.GetHeader("X-Forwarded-Proto") == "https" || util.GetConfig().UseSSL {
201
protocol = "https"
202
}
203
return fmt.Sprintf("%s://%s", protocol, c.Request.Host)
0 commit comments