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.
2 parents 70bab70 + e985e09 commit c948c98Copy full SHA for c948c98
server/parsers/url.go
@@ -20,20 +20,20 @@ func GetHost(c *gin.Context) string {
20
authorizerURL = ""
21
}
22
if authorizerURL != "" {
23
- return authorizerURL
+ return strings.TrimSuffix(authorizerURL, "/")
24
25
26
authorizerURL = c.Request.Header.Get("X-Authorizer-URL")
27
28
29
30
31
scheme := c.Request.Header.Get("X-Forwarded-Proto")
32
if scheme != "https" {
33
scheme = "http"
34
35
host := c.Request.Host
36
- return scheme + "://" + host
+ return strings.TrimSuffix(scheme+"://"+host, "/")
37
38
39
// GetHostName function returns hostname and port
0 commit comments