chore: fix content type header naming
This commit is contained in:
parent
531e2e5f27
commit
5fc3c9d507
1 changed files with 1 additions and 1 deletions
|
|
@ -44,7 +44,7 @@ func NewGitHub(client ApiClient) *GitHub {
|
|||
}
|
||||
|
||||
func HasContentType(r *http.Response, mimetype string) bool {
|
||||
contentType := r.Header.Get("Content-type")
|
||||
contentType := r.Header.Get("content-type")
|
||||
if contentType == "" {
|
||||
return mimetype == "application/octet-stream"
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue