Closed honzajavorek closed 10 years ago
vnd.apiblueprint.parseresult.raw+yaml
is not a valid mime type; it's missing the type (format is {type}/{subtype}
. It looks like that is only a subtype.
Here is a good example from a RFC on the format: http://tools.ietf.org/html/rfc2045#section-5.1 you'll see the format must have a type and subtype.
And if you were wondering about Accept
-specific headers, you can see in http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html that vnd.apiblueprint.parseresult.raw+yaml
is also an invalid format for the Accept
header, because once again, you need a /
in there. Acceptable values for the header are */*
, {type}/*
or {type}/{subtype}
.
Thank you so much for pointing it out. The type is so long I didn't really notice the first part is missing. It's definitely a mistake on my side. Sorry for filing an issue.
I just encountered this behavior:
...while following works nicely:
I suspect that
req.accepts
doesn't play well with dots in custom content types. I tried the same thing in separate code snippet using onlyaccepts
, but that worked O_oI don't understand it. From my POW it seems to be an express' issue.