Skip to content

AdonisJS broke for the normalizeType change #41

@wiliame

Description

@wiliame

Hi, adonisjs is broken because of a change in this library.

The commit change is the next one:
3c1d9b7#diff-168726dbe96b3ce427e7fedce31bb0bc

You have forced the type of the argument to be "string" but node-req, the library that is using adonisjs calls "is" with the request (object) and not with the content-type (string):

I don't know why they calls the function with the request and node-req github page dissapeared to report them

https://github.com/poppinss/node-req/issues

The method tryNormalizeType works fine with "request objects", but forcing the argument to be a string breaks node-req and adonisjs, it's possible to remove the type force until I report the issue to AdonisJS?

Thanks!

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions