diff --git a/main.go b/main.go index f8c82c9..ba46aa8 100644 --- a/main.go +++ b/main.go @@ -656,11 +656,12 @@ func Get(url string) (response *Response, err error) { return } -func Post(url string, body io.Reader) (response *Response, err error) { +func Post(url string, contentType string, body io.Reader) (response *Response, err error) { request, err := NewRequest("POST", url, body) if err != nil { return } + request.Header.Add("Content-Type", contentType) response, err = Fetch.Do(request) return }