From c37ae2a36a8d2e33f9eada9012a9c76188c7067c Mon Sep 17 00:00:00 2001 From: kevin Date: Wed, 8 Aug 2018 11:53:16 -0400 Subject: [PATCH] fix for go-resty/resty#171 --- client.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client.go b/client.go index a10a5200..23d08be0 100644 --- a/client.go +++ b/client.go @@ -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"