-
Notifications
You must be signed in to change notification settings - Fork 20
Open
Labels
documentationImprovements or additions to documentationImprovements or additions to documentationgood first issueGood for newcomersGood for newcomers
Description
Thanks for open sourcing this library, saved me quite some time while implementing my API proxy.
While working with multipart/form-data
requests i've noticed that the Next.js bodyParser tries to parse the body, causing it to corrupt the binary content of all files in the request. Therefore (in my case) it's desired to disable the bodyParser entirely in the API route (https://nextjs.org/docs/api-routes/api-middlewares#custom-config).
export const config = {
api: {
bodyParser: false
}
};
This library handles all other requests/content-types correctly. Perhaps it would be an idea to document this to safe others some time with similar issues.
stegano, code4break, shucream, guidorice, ryanzheng1998 and 11 morestegano, cdelacombaz, JozielOliveira, bellmatthewf and moy2010stegano, devon94, cdelacombaz, vsDizzy, JozielOliveira and 1 morebellmatthewf, saacostam-zaga and steganoryanzheng1998, stegano, devon94, cdelacombaz, JozielOliveira and 3 more
Metadata
Metadata
Assignees
Labels
documentationImprovements or additions to documentationImprovements or additions to documentationgood first issueGood for newcomersGood for newcomers