diff options
author | George Goldberg <george@gberg.me> | 2018-04-27 10:53:38 +0100 |
---|---|---|
committer | George Goldberg <george@gberg.me> | 2018-04-27 10:53:38 +0100 |
commit | 2386acb3ddabd8827e21b1862c338a8b13a25de6 (patch) | |
tree | d9c5800bf168db532124db3c213c2607402894c6 /model/client.go | |
parent | 7294644e9d74ca1512a730c597d61a97ccbcf10c (diff) | |
parent | 7abd6176e99d3f82711af51f8d75b3142ab73758 (diff) | |
download | chat-2386acb3ddabd8827e21b1862c338a8b13a25de6.tar.gz chat-2386acb3ddabd8827e21b1862c338a8b13a25de6.tar.bz2 chat-2386acb3ddabd8827e21b1862c338a8b13a25de6.zip |
Merge branch 'master' into advanced-permissions-phase-2
Diffstat (limited to 'model/client.go')
-rw-r--r-- | model/client.go | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/model/client.go b/model/client.go index b48d1ac37..317374d36 100644 --- a/model/client.go +++ b/model/client.go @@ -831,8 +831,10 @@ func (c *Client) Command(channelId string, command string) (*Result, *AppError) return nil, err } else { defer closeBody(r) + + response, _ := CommandResponseFromJson(r.Body) return &Result{r.Header.Get(HEADER_REQUEST_ID), - r.Header.Get(HEADER_ETAG_SERVER), CommandResponseFromJson(r.Body)}, nil + r.Header.Get(HEADER_ETAG_SERVER), response}, nil } } |