Skip to content

Commit

Permalink
Adding content type "application/hal+json" into json automatic unmars…
Browse files Browse the repository at this point in the history
…hal #171 (#172)
  • Loading branch information
Kevin Manley authored and jeevatkm committed Aug 8, 2018
1 parent 97a1557 commit 2620251
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client.go
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ var (
jsonContentType = "application/json; charset=utf-8"
formContentType = "application/x-www-form-urlencoded"

jsonCheck = regexp.MustCompile(`(?i:(application|text)/(problem\+json|json))`)
jsonCheck = regexp.MustCompile(`(?i:(application|text)/(problem\+json|hal\+json|json))`)
xmlCheck = regexp.MustCompile(`(?i:(application|text)/(problem\+xml|xml))`)

hdrUserAgentValue = "go-resty v%s - https://github.com/go-resty/resty"
Expand Down

0 comments on commit 2620251

Please sign in to comment.