mirror of
https://github.com/weloe/token-go.git
synced 2025-10-13 03:03:41 +08:00
fix: fix set cookie error, lint error and update default token name to ''Tokengo'
This commit is contained in:
@@ -44,10 +44,12 @@ func (d *HttpRequest) UrlNoQuery() string {
|
||||
if d.source.URL.Scheme != "" {
|
||||
scheme = d.source.URL.Scheme
|
||||
}
|
||||
if d.source.TLS != nil {
|
||||
scheme = "https"
|
||||
} else {
|
||||
scheme = "http"
|
||||
if scheme == "" {
|
||||
if d.source.TLS != nil {
|
||||
scheme = "https"
|
||||
} else {
|
||||
scheme = "http"
|
||||
}
|
||||
}
|
||||
return scheme + "://" + d.source.Host + d.source.URL.Path
|
||||
}
|
||||
|
Reference in New Issue
Block a user