File tree Expand file tree Collapse file tree 1 file changed +0
-4
lines changed
Expand file tree Collapse file tree 1 file changed +0
-4
lines changed Original file line number Diff line number Diff line change @@ -61,16 +61,12 @@ func HandleAPIErrorResponse(resp *http.Response, log logger.Logger) *APIError {
6161 switch mimeType {
6262 case "application/json" :
6363 parseJSONResponse (bodyBytes , apiError , log , resp )
64- logError (log , apiError , "json_error_detected" , resp )
6564 case "application/xml" , "text/xml" :
6665 parseXMLResponse (bodyBytes , apiError , log , resp )
67- logError (log , apiError , "xml_error_detected" , resp )
6866 case "text/html" :
6967 parseHTMLResponse (bodyBytes , apiError , log , resp )
70- logError (log , apiError , "html_error_detected" , resp )
7168 case "text/plain" :
7269 parseTextResponse (bodyBytes , apiError , log , resp )
73- logError (log , apiError , "text_error_detected" , resp )
7470 default :
7571 apiError .Raw = string (bodyBytes )
7672 apiError .Message = "Unknown content type error"
You can’t perform that action at this time.
0 commit comments