From 799d3b42a4e8336b22b0b797f55c25596b8f94b8 Mon Sep 17 00:00:00 2001 From: Felix Sanz Date: Sun, 6 Nov 2016 16:53:51 +0100 Subject: [PATCH] this.is() returns null when no body is passed (#850) --- docs/api/request.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/api/request.md b/docs/api/request.md index 8602c90..2b7c6a1 100644 --- a/docs/api/request.md +++ b/docs/api/request.md @@ -195,7 +195,7 @@ this.body = yield db.find('something'); Check if the incoming request contains the "Content-Type" header field, and it contains any of the give mime `type`s. - If there is no request body, `undefined` is returned. + If there is no request body, `null` is returned. If there is no content type, or the match fails `false` is returned. Otherwise, it returns the matching content-type.