Skip to content

Commit 0702743

Browse files
committed
Remove escape characters from Jenkins response body
1 parent 72f49f2 commit 0702743

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/jenkins_api_client/client.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -806,7 +806,7 @@ def handle_exception(response, to_send = "code", send_json = false)
806806
# the queue.
807807
when 200, 201, 302
808808
if to_send == "body" && send_json
809-
return JSON.parse(response.body)
809+
return JSON.parse(response.body.gsub("\e", ''))
810810
elsif to_send == "body"
811811
return response.body
812812
elsif to_send == "code"

0 commit comments

Comments
 (0)