Fix nil map assignment.

feature/event-api
Icedream 2016-06-13 19:46:46 +02:00
parent 2e65239ca1
commit 4ebf01f875
1 changed files with 1 additions and 0 deletions

View File

@ -37,6 +37,7 @@ func (c *Client) doJson(method string, path string, values url.Values) (j *json.
req := &http.Request{ req := &http.Request{
Method: method, Method: method,
URL: resolveRelativeUrl(path, values), URL: resolveRelativeUrl(path, values),
Header: http.Header{},
} }
// Set request headers // Set request headers