Skip to content

is(req, 'xml') should be true when content-type is text/xml #24

Open
@creeperyang

Description

@creeperyang

When I use koa and its this.is('xml'), it makes me confused:

// content-type: 'text/xml'
this.is('xml') // false

I think application/xml and text/xml are both valid xml type.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions