summaryrefslogtreecommitdiff
path: root/service/http/request.go
diff options
context:
space:
mode:
Diffstat (limited to 'service/http/request.go')
-rw-r--r--service/http/request.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/service/http/request.go b/service/http/request.go
index 5d91bfb6..630e26f6 100644
--- a/service/http/request.go
+++ b/service/http/request.go
@@ -170,6 +170,9 @@ func (r *Request) contentType() int {
// uri fetches full uri from request in a form of string (including https scheme if TLS connection is enabled).
func uri(r *http.Request) string {
+ if r.URL.Host != "" {
+ return r.URL.String()
+ }
if r.TLS != nil {
return fmt.Sprintf("https://%s%s", r.Host, r.URL.String())
}