Fix space on haveibeenpwned path
This commit is contained in:
parent
b008e9088a
commit
3bf30bd63f
2 changed files with 1 additions and 2 deletions
2
app.js
2
app.js
|
@ -28,7 +28,7 @@ io.on("connection", (socket) => {
|
|||
let request = https.request({
|
||||
hostname: "haveibeenpwned.com",
|
||||
port: 443,
|
||||
path: "/api/v3/breachedaccount/" + data.email,
|
||||
path: "/api/v3/breachedaccount/" + data.email.trim().replace(" ", "%20"),
|
||||
method: "GET",
|
||||
headers: {
|
||||
Accept: 'application/json',
|
||||
|
|
|
@ -3,4 +3,3 @@ module.exports = (err, req, res, next) => {
|
|||
res.status(500);
|
||||
res.render("error", {session: req.session});
|
||||
}
|
||||
|
||||
|
|
Reference in a new issue