Skip to content
This repository was archived by the owner on Jan 22, 2024. It is now read-only.

Commit 30cca61

Browse files
committed
Changed how headers are removed from the sp server
1 parent 25d11a3 commit 30cca61

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

digexp-sp-server/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -136,8 +136,8 @@ exports.start = function start(dir, port) {
136136
});
137137

138138
// Including these headers sometimes gets 404 responses
139-
req.headers["referer"] = null;
140-
req.headers["host"] = null;
139+
delete req.headers["referer"];
140+
delete req.headers["host"];
141141

142142
request.get({
143143
url: url,

sp-server.tar.gz

4 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)