diff options
author | Joram Wilander <jwawilander@gmail.com> | 2015-06-18 14:59:22 -0400 |
---|---|---|
committer | Joram Wilander <jwawilander@gmail.com> | 2015-06-18 14:59:22 -0400 |
commit | c64f5eae55e1665681ee7a1b60d3192a54df9f84 (patch) | |
tree | eef49438d1b617e71a29e77e22859ed925926966 /api/context.go | |
parent | f1dbf69c767cfa5514cfcc7c3e505d5cd4ed35b3 (diff) | |
parent | a5ce5972ba527ce2617ccb539ef045f1f425c373 (diff) | |
download | chat-c64f5eae55e1665681ee7a1b60d3192a54df9f84.tar.gz chat-c64f5eae55e1665681ee7a1b60d3192a54df9f84.tar.bz2 chat-c64f5eae55e1665681ee7a1b60d3192a54df9f84.zip |
Merge pull request #30 from mattermost/dockerhost
fix for dockerhost HELIUM
Diffstat (limited to 'api/context.go')
-rw-r--r-- | api/context.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/api/context.go b/api/context.go index 16105c8af..501e4e77f 100644 --- a/api/context.go +++ b/api/context.go @@ -303,6 +303,10 @@ func IsTestDomain(r *http.Request) bool { return true } + if strings.Index(r.Host, "dockerhost") == 0 { + return true + } + if strings.Index(r.Host, "test") == 0 { return true } |