Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

UnsupportedMediaTypeError: unsupported content encoding "aesgcm" #314

Closed
tateisu opened this issue May 11, 2018 · 2 comments
Closed

UnsupportedMediaTypeError: unsupported content encoding "aesgcm" #314

tateisu opened this issue May 11, 2018 · 2 comments

Comments

@tateisu
Copy link

tateisu commented May 11, 2018

UnsupportedMediaTypeError: unsupported content encoding "aesgcm"

app.use('/path', bodyParser.raw({
}))

can I support this content encoding to same as 'identity' ?

@dougwilson
Copy link
Contributor

I'm not familiar with that encoding, but we have the feature request #108 to allow custom content encodings, which would support your use case.

Duplicate if #108

@tateisu
Copy link
Author

tateisu commented May 12, 2018

then i use raw-body directly.

// for koajs/koa
const body_raw = async (ctx,next) =>{
    ctx.request.body = await getRawBody(ctx.req,{
	limit: '40kb',
    })
    await next()
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants