Fix siteURL not being set correctly (#5189)

Этот коммит содержится в:
Joram Wilander
2017-01-25 11:11:26 -05:00
коммит произвёл GitHub
родитель d245b29f82
Коммит 504f3e1723

Просмотреть файл

@@ -144,6 +144,8 @@ func (h handler) ServeHTTP(w http.ResponseWriter, r *http.Request) {
if utils.GetSiteURL() == "" {
protocol := GetProtocol(r)
c.SetSiteURL(protocol + "://" + r.Host)
} else {
c.SetSiteURL(utils.GetSiteURL())
}
w.Header().Set(model.HEADER_REQUEST_ID, c.RequestId)