Skip to content

Commit 985633f

Browse files
authored
enable unknown fields in json response
1 parent 103eda7 commit 985633f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sonar/client_util.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ func Do(c *http.Client, req *http.Request, v interface{}) (*http.Response, error
116116
*w = string(byts)
117117
} else {
118118
decoder := json.NewDecoder(resp.Body)
119-
decoder.DisallowUnknownFields()
119+
// decoder.DisallowUnknownFields()
120120
err = decoder.Decode(v)
121121
}
122122
}

0 commit comments

Comments
 (0)