Closed kenchan0130 closed 8 years ago
Currently, assertCsrf method has the body argument.
assertCsrf
But I thought it look like that assertCsrf method presuppose request.body.
request.body
I seem that some developer have to understand those implements.
So, the body argument of assertCsrf method should have like default value which is this.request.body.
body
this.request.body
What do you think?
Can you take a look at the new code for Koa@next here and let me know if this is still an issue or how we can fix it? https://github.com/koajs/csrf
Currently,
assertCsrf
method has the body argument.But I thought it look like that
assertCsrf
method presupposerequest.body
.I seem that some developer have to understand those implements.
So, the
body
argument ofassertCsrf
method should have like default value which isthis.request.body
.What do you think?