Skip to content

Commit

Permalink
fixing response header separator
Browse files Browse the repository at this point in the history
  • Loading branch information
Pasupathi-Rajamanickam committed Mar 4, 2020
1 parent 11e541f commit 52b5883
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion devtools/devtools.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ function setupDebugger(target) {
ajaxMe(request.url, (data) => {
replaceResponse(data.response, filteredData, (replacedData) => {
continueParams.responseCode = 200;
continueParams.binaryResponseHeaders = btoa(unescape(encodeURIComponent(data.getAllResponseHeaders())));
continueParams.binaryResponseHeaders = btoa(unescape(encodeURIComponent(data.getAllResponseHeaders().replace(/(?:\r\n|\r|\n)/g, '\0'))));
continueParams.body = btoa(unescape(encodeURIComponent(replacedData)));
chrome.debugger.sendCommand(debugee, 'Fetch.fulfillRequest', continueParams);
});
Expand Down

0 comments on commit 52b5883

Please sign in to comment.