Skip to content

Commit

Permalink
do not add \r if already has it
Browse files Browse the repository at this point in the history
  • Loading branch information
jkwlui committed Sep 27, 2018
1 parent b00bf42 commit 1720cfc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/test.media.ts
Expand Up @@ -37,7 +37,7 @@ async function testMultpart(drive: drive_v2.Drive) {
res.request.headers['content-type'].indexOf('multipart/related;'), 0);
const boundary =
res.request.headers['content-type'].replace(boundaryPrefix, '');
expectedResp = expectedResp.replace(/\n/g, '\r\n')
expectedResp = expectedResp.replace(/\r?\n/g, '\r\n')
.replace(/\$boundary/g, boundary)
.replace('$media', media.body)
.replace('$resource', JSON.stringify(requestBody))
Expand Down

0 comments on commit 1720cfc

Please sign in to comment.