Skip to content

Commit

Permalink
Remove escape characters from Jenkins response body
Browse files Browse the repository at this point in the history
  • Loading branch information
itskingori authored and zacblazic committed Mar 20, 2023
1 parent 3fffb8b commit 202630a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/jenkins_api_client/client.rb
Original file line number Diff line number Diff line change
Expand Up @@ -806,7 +806,7 @@ def handle_exception(response, to_send = "code", send_json = false)
# the queue.
when 200, 201, 302
if to_send == "body" && send_json
return JSON.parse(response.body)
return JSON.parse(response.body.gsub("\e", ''))
elsif to_send == "body"
return response.body
elsif to_send == "code"
Expand Down

0 comments on commit 202630a

Please sign in to comment.