Skip to content

Commit

Permalink
fix: Configure text middleware to use wildcard for matching
Browse files Browse the repository at this point in the history
fix: Configure text middleware to use wildcard for matching
  • Loading branch information
shubhendumadhukar committed Aug 14, 2023
2 parents af3803a + bd05fb0 commit eb7d067
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,7 @@ app.use(express.json());
app.use(express.urlencoded({ extended: true }));
app.use(
express.text({
type: () => {
return true;
},
type: "text/*"
})
);
// Configure express to compress responses - FUTURE IMPROVEMENT - Allow compression options
Expand Down

0 comments on commit eb7d067

Please sign in to comment.