Skip to content

Commit 938ae2f

Browse files
committed
[dev] add Content-Type header
1 parent 36e3838 commit 938ae2f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

client.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@ func (c *Client) call(module, action string, param map[string]interface{}, outco
6868
return
6969
}
7070
req.Header.Set("User-Agent", "etherscan-api(Go)")
71+
req.Header.Set("Content-Type", "application/json; charset=utf-8")
7172

7273
if c.Verbose {
7374
var reqDump []byte

0 commit comments

Comments
 (0)