Skip to content

Commit 02456e8

Browse files
committed
set the content type
1 parent 1fbfbd5 commit 02456e8

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

textbox/textbox.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,7 @@ func (c *Client) Check(r io.Reader) (*Analysis, error) {
116116
if err != nil {
117117
return nil, err
118118
}
119+
req.Header.Set("Content-Type", "application/x-www-form-urlencoded")
119120
req.Header.Set("Accept", "application/json; charset=utf-8")
120121
resp, err := c.HTTPClient.Do(req)
121122
if err != nil {

0 commit comments

Comments
 (0)