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

koa@next doesn't support text #52

Closed
felixsanz opened this issue Jul 29, 2016 · 3 comments
Closed

koa@next doesn't support text #52

felixsanz opened this issue Jul 29, 2016 · 3 comments

Comments

@felixsanz
Copy link

https://github.com/koajs/bodyparser/blob/next/index.js

It doesn't support ['text']

@pleerock
Copy link

+1 having same issue

const koa = require("koa");
const bodyparser = require("koa-bodyparser");
const router = require("koa-router")();

const app = new koa();
app.use(bodyparser());

router.post("/users", function(ctx: any) {
    console.log(ctx.request.body);
});

app
    .use(router.routes())
    .use(router.allowedMethods());

app.listen(3000);

request headers:
Content-Type: text/plain; charset=utf-8 with text body.

console outputs: {}

@felixsanz
Copy link
Author

There is a Pull Request here i think: 05bf90e

dead-horse added a commit that referenced this issue Jul 31, 2016
dead-horse added a commit that referenced this issue Jul 31, 2016
@dead-horse
Copy link
Member

3.2.0

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

No branches or pull requests

3 participants