Skip to content

Commit

Permalink
Only accept application/zip or application/gzip
Browse files Browse the repository at this point in the history
  • Loading branch information
skh committed Sep 14, 2020
1 parent 3b76ac8 commit 69ddeda
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion x-pack/plugins/ingest_manager/server/routes/epm/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,8 @@ export const registerRoutes = (router: IRouter) => {
options: {
tags: [`access:${PLUGIN_ID}-all`],
body: {
accepts: ['application/octet-stream'],
accepts: ['application/gzip', 'application/zip'],
parse: false,
maxBytes: MAX_FILE_SIZE_BYTES,
},
},
Expand Down

0 comments on commit 69ddeda

Please sign in to comment.