diff options
author | =Corey Hulen <corey@hulen.com> | 2015-06-18 10:55:51 -0800 |
---|---|---|
committer | =Corey Hulen <corey@hulen.com> | 2015-06-18 10:55:51 -0800 |
commit | dbd781c0183a47d25857ea59184a9387d8727490 (patch) | |
tree | da6632672b05f24cfdef28f7fd29267dc98aa5f0 /api | |
parent | 27c29ed745a1730c579d49dc6d26da5ba88ea155 (diff) | |
download | chat-dbd781c0183a47d25857ea59184a9387d8727490.tar.gz chat-dbd781c0183a47d25857ea59184a9387d8727490.tar.bz2 chat-dbd781c0183a47d25857ea59184a9387d8727490.zip |
fix for dockerhost HELIUM
Diffstat (limited to 'api')
-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 } |