We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents d831b87 + e166536 commit de1ebf8Copy full SHA for de1ebf8
assert.go
@@ -43,7 +43,7 @@ func AssertHTTPResponse(t *testing.T, id string, w *http.Response) {
43
44
// If the response body is JSON, indent.
45
if contentTypeIsJSON(contentType) {
46
- lines := strings.Split(data, "\n")
+ lines := strings.Split(strings.TrimSpace(data), "\n")
47
jsonStr := lines[len(lines)-1]
48
49
var jsonIface map[string]interface{}
0 commit comments