Skip to content

Commit 649746a

Browse files
authored
Merge pull request #1 from cubitouch/master
Fix truncated header value
2 parents 8f1a470 + c745544 commit 649746a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/adapters/http-multipart-mixed-boundary-adapter.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ export class HttpMultipartMixedBoundaryAdapter implements IBatchHttpRequestAdapt
120120
status = parseInt(lineParts[1], 10);
121121
statusText = lineParts.slice(2).join(HttpMultipartMixedBoundaryAdapter.SPACE);
122122
} else {
123-
headers.append(lineParts[0].replace(":", HttpMultipartMixedBoundaryAdapter.EMPTY_STRING), lineParts[1]);
123+
headers.append(lineParts[0].replace(":", HttpMultipartMixedBoundaryAdapter.EMPTY_STRING), header.substring(header.indexOf(HttpMultipartMixedBoundaryAdapter.SPACE)+1));
124124
}
125125
});
126126

0 commit comments

Comments
 (0)