Skip to content
Snippets Groups Projects
Commit e77123b0 authored by Martin Lowe's avatar Martin Lowe :flag_ca:
Browse files

Add the \\r character to the check for newline cleaning

parent d2cf732e
No related branches found
No related tags found
1 merge request!70Add the \\r character to the check for newline cleaning
......@@ -110,7 +110,7 @@ json_data = {
:commits => processed_git_data
}
## Generate request (use gsub to scrub any lingering \n constants)
response = HTTParty.post("https://api.eclipse.org/git/eca", :body => MultiJson.dump(json_data).gsub('\\n', ''),
response = HTTParty.post("https://api.eclipse.org/git/eca", :body => MultiJson.dump(json_data).gsub(/(\\n|\\r)/, ''),
:headers => {
'Content-Type' => 'application/json',
'charset' => 'utf-8'
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment