* Fixed #124: Added Content-Type json to HTTP headers * Moved setting header after creation of request
This commit is contained in:
parent
a63cd20703
commit
4300feccd6
@ -63,6 +63,8 @@ func (conn *HTTPEndpointConn) Send(msg string) error {
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
req.Header.Set("Content-Type", "application/json")
|
||||
resp, err := conn.client.Do(req)
|
||||
if err != nil {
|
||||
return err
|
||||
|
Loading…
x
Reference in New Issue
Block a user