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 | 9c639239907e66a01cf9530bd92873a43e9fb822 (patch) | |
tree | 23bf77ac3f411fc03d59b641315fd29ad6d413e3 /api | |
parent | 42b023a41db62cdacf6d0e7e029fbc8db7d6ab31 (diff) | |
download | chat-9c639239907e66a01cf9530bd92873a43e9fb822.tar.gz chat-9c639239907e66a01cf9530bd92873a43e9fb822.tar.bz2 chat-9c639239907e66a01cf9530bd92873a43e9fb822.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 } |