зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1297068 - Copy as cURL generates correct boundary on a multipart request r=Honza
MozReview-Commit-ID: EOyLVsHkBCL --HG-- extra : rebase_source : f929b7506a1ca4a488a92efcf0804583ded4171e
This commit is contained in:
Родитель
b6c7822e72
Коммит
37ccd80244
|
@ -113,8 +113,8 @@ function test_removeBinaryDataFromMultipartText(aData) {
|
|||
"\\r\\n",
|
||||
"Content-Type: image/png",
|
||||
"\\r\\n\\r\\n",
|
||||
generatedBoundary,
|
||||
"--\\r\\n",
|
||||
boundary + "--",
|
||||
"\\r\\n",
|
||||
"'"
|
||||
].join("");
|
||||
|
||||
|
@ -131,7 +131,7 @@ function test_removeBinaryDataFromMultipartText(aData) {
|
|||
"\u000d\u000A",
|
||||
'"Content-Type: image/png"^',
|
||||
"\u000d\u000A\u000d\u000A",
|
||||
'"' + generatedBoundary + '--"^',
|
||||
'"' + boundary + '--"^',
|
||||
"\u000d\u000A",
|
||||
'""'
|
||||
].join("");
|
||||
|
|
|
@ -290,7 +290,7 @@ this.CurlUtils = {
|
|||
}
|
||||
}
|
||||
}
|
||||
result += aBoundary + "--\r\n";
|
||||
result += boundary + "--\r\n";
|
||||
|
||||
return result;
|
||||
},
|
||||
|
|
Загрузка…
Ссылка в новой задаче