From 8be7e3ac4e941555169a99d01abcabd3c982d87a Mon Sep 17 00:00:00 2001 From: Armon Dadgar Date: Tue, 25 Feb 2014 14:19:05 -0800 Subject: [PATCH] Client sets the default domain if not provided --- client.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/client.go b/client.go index e490088..d449e4d 100644 --- a/client.go +++ b/client.go @@ -66,7 +66,10 @@ func Query(params *QueryParam) error { } } - // Ensure a timeout + // Ensure defaults are set + if params.Domain == "" { + params.Domain = "local" + } if params.Timeout == 0 { params.Timeout = time.Second }