diff options
| author | Pitu <[email protected]> | 2020-12-25 20:45:22 +0900 |
|---|---|---|
| committer | Pitu <[email protected]> | 2020-12-25 20:45:22 +0900 |
| commit | ec2f9e0d989792c1760b48e063467cf6e59c580a (patch) | |
| tree | 6f447aeebe9af7be57ba15e23851a4611568ec3e /src/api/structures/Server.js | |
| parent | chore: style changes (diff) | |
| download | host.fuwn.me-ec2f9e0d989792c1760b48e063467cf6e59c580a.tar.xz host.fuwn.me-ec2f9e0d989792c1760b48e063467cf6e59c580a.zip | |
Rebrand
Diffstat (limited to 'src/api/structures/Server.js')
| -rw-r--r-- | src/api/structures/Server.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/api/structures/Server.js b/src/api/structures/Server.js index cc1064f..b8952a9 100644 --- a/src/api/structures/Server.js +++ b/src/api/structures/Server.js @@ -35,7 +35,7 @@ class Server { if ((req.url.includes('/api/album/') || req.url.includes('/zip')) && req.method === 'GET') return next(); // This bypasses the headers.accept if we are accessing the frontend if (!req.url.includes('/api/') && req.method === 'GET') return next(); - if (req.headers.accept && req.headers.accept.includes('application/vnd.lolisafe.json')) return next(); + if (req.headers.accept && req.headers.accept.includes('application/vnd.chibisafe.json')) return next(); return res.status(405).json({ message: 'Incorrect `Accept` header provided' }); }); this.server.use(bodyParser.urlencoded({ extended: true })); |