diff options
Diffstat (limited to 'api/context.go')
-rw-r--r-- | api/context.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/api/context.go b/api/context.go index 5aa35ad89..798f4dc87 100644 --- a/api/context.go +++ b/api/context.go @@ -139,7 +139,7 @@ func (h handler) ServeHTTP(w http.ResponseWriter, r *http.Request) { } protocol := GetProtocol(r) - c.setSiteURL(protocol + "://" + r.Host) + c.SetSiteURL(protocol + "://" + r.Host) w.Header().Set(model.HEADER_REQUEST_ID, c.RequestId) w.Header().Set(model.HEADER_VERSION_ID, fmt.Sprintf("%v.%v", model.CurrentVersion, utils.CfgLastModified)) @@ -417,7 +417,7 @@ func (c *Context) SetTeamURLFromSession() { } } -func (c *Context) setSiteURL(url string) { +func (c *Context) SetSiteURL(url string) { c.siteURL = url } |