Bug 1986142 - Fix lint warnings. a=me DONTBUILD
This commit is contained in:
committed by
rvandermeulen@mozilla.com
parent
c8e6b3801c
commit
0af041b429
@@ -208,19 +208,19 @@ function testRemoveBinaryDataFromMultipartText(data) {
|
||||
const EXPECTED_WIN_RESULT = [
|
||||
'^"',
|
||||
boundary,
|
||||
'^\u000A\u000A',
|
||||
"^\u000A\u000A",
|
||||
'Content-Disposition: form-data; name=^\\^"param1^\\^"',
|
||||
'^\u000A\u000A^\u000A\u000A',
|
||||
"^\u000A\u000A^\u000A\u000A",
|
||||
"value1",
|
||||
'^\u000A\u000A',
|
||||
"^\u000A\u000A",
|
||||
boundary,
|
||||
'^\u000A\u000A',
|
||||
"^\u000A\u000A",
|
||||
'Content-Disposition: form-data; name=^\\^"file^\\^"; filename=^\\^"filename.png^\\^"',
|
||||
'^\u000A\u000A',
|
||||
"^\u000A\u000A",
|
||||
"Content-Type: image/png",
|
||||
'^\u000A\u000A^\u000A\u000A',
|
||||
"^\u000A\u000A^\u000A\u000A",
|
||||
boundary + "--",
|
||||
'^\u000A\u000A',
|
||||
"^\u000A\u000A",
|
||||
'^"',
|
||||
].join("");
|
||||
|
||||
|
||||
@@ -477,7 +477,7 @@ const CurlUtils = {
|
||||
// Lastly we replace new lines with ^ and TWO new lines because the first
|
||||
// new line is there to enact the escape command the second is the character
|
||||
// to escape (in this case new line).
|
||||
.replace(/\r?\n|\r/g, '^\n\n') +
|
||||
.replace(/\r?\n|\r/g, "^\n\n") +
|
||||
encapsChars
|
||||
);
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user