We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents f3e7ed9 + ecfe56c commit 4b83b6fCopy full SHA for 4b83b6f
splunk/splunk.go
@@ -163,6 +163,10 @@ func (c *Client) doRequest(b *bytes.Buffer) error {
163
// If statusCode is not good, return error string
164
switch res.StatusCode {
165
case 200:
166
+ // need to read the reply otherwise the connection hangs
167
+ buf := new(bytes.Buffer)
168
+ buf.ReadFrom(res.Body)
169
+
170
return nil
171
default:
172
// Turn response into string and return it
0 commit comments