Closed iyaozhen closed 7 months ago
why can you set a meaningful content-type header? or you can just use https://github.com/stream-utils/raw-body#simple-koa-example directly.
Because client request is another user, I cant not control It,But as a server we will compatible it.
I'm not sure, but we can add an option to enable support for the unknown request type as text. @dead-horse ?!
This issue opened for a long time and I think @iyaozhen followed at the end what @dead-horse mentioned, therefore I am closing this issue, and please feel free to re-open at anytime if you feel like you realy need this feature today!
demo code
test request
debug
parseBody
first judge content type then parse it, but content type isundefined
. And I try extendTypes, but build-intypeis
try fase when it isundefined
In some times, client request not standard, but as a server we will compatible it. sad ðŸ˜