Use host header directly so it includes port
This commit is contained in:
parent
8a59e178e8
commit
f8bbfd1fd1
2
fsv2.js
2
fsv2.js
@ -32,7 +32,7 @@ app.post("/upload", (req, res, next) => {
|
||||
} catch(e) {
|
||||
return next(e);
|
||||
}
|
||||
res.send(`${req.protocol}://${filecode}.${req.hostname}`);
|
||||
res.send(`${req.protocol}://${filecode}.${req.headers.host}`);
|
||||
});
|
||||
});
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user