Skip to content

Commit

Permalink
fix: url decode
Browse files Browse the repository at this point in the history
  • Loading branch information
froid1911 committed Jul 2, 2024
1 parent 4918aaf commit c98e783
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions api/src/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,6 @@ export const createApp = (): { app: Express; router: express.Router } => {

// fixes request entity too large
app.use(bodyParser.json({ limit: '50mb' }));
app.use(
bodyParser.urlencoded({
limit: '50mb',
extended: true,
parameterLimit: 50000,
})
);

if (process.env.SENTRY_DSN) {
Sentry.init({
Expand Down Expand Up @@ -86,9 +79,8 @@ export const createApp = (): { app: Express; router: express.Router } => {
res.setHeader('Content-Type', 'text/html');
const basePath =
process.env.BASE_PATH === '/' ? '' : process.env.BASE_PATH || '';
const endpoint = `${basePath}${
req.params.driveId !== undefined ? `/d/${req.params.driveId}` : '/drives'
}`;
const endpoint = `${basePath}${req.params.driveId !== undefined ? `/d/${req.params.driveId}` : '/drives'
}`;
res.send(
renderPlaygroundPage({
endpoint: endpoint,
Expand Down

0 comments on commit c98e783

Please sign in to comment.