merge-requests/4/head
Matthew 2020-07-22 22:19:08 -04:00
parent dd12ff6d1c
commit 21e0064d97
No known key found for this signature in database
GPG Key ID: 210AF32ADE3B5C4B
1 changed files with 1 additions and 1 deletions

View File

@ -10,7 +10,7 @@ export default class Webhook extends Route {
public bind() {
this.router.get('/s1', async (req, res) => {
try {
if (req.headers.authorization !== this.server.security.keys.iv.toString()) return res.status(401).json({ code: this.constants.codes.UNAUTHORIZED, message: this.constants.codes.UNAUTHORIZED });
if (req.headers.authorization !== this.server.security.keys.iv.toString('base64')) return res.status(401).json({ code: this.constants.codes.UNAUTHORIZED, message: this.constants.codes.UNAUTHORIZED });
const embed = new RichEmbed();
embed.setTitle('Service Request');
embed.setDescription(req.body.url);