Files
meteor/packages
Michael Mason f263ca4fea Allow middleware to set http status code
This commit allows middleware to set the status code of the http response. This will allow a server-side router to return, for example, a '404 Not Found' response. This has SEO benefits because currently search engines may index example.org/page-that-doesn't-exist because Meteor returns a 200 OK code and the normal boilerplate response body. With a proper 404 status we can still return the boilerplate to render a client side 404 template but search engines won't index the page. Instead of a hardcoded 200 response, we call res.writeHead with res.statusCode, and fallback to the default 200 code if it has not been set.
2016-01-05 11:05:53 +00:00
..
2015-11-06 16:36:07 +11:00
2015-11-11 19:08:41 +01:00
2016-01-04 11:00:19 -08:00
2015-10-26 14:31:14 -07:00
2015-12-09 14:10:01 -05:00
2015-10-26 14:31:14 -07:00
2015-12-28 15:40:43 +01:00
2015-10-26 14:31:14 -07:00
2015-10-26 14:31:14 -07:00
2015-10-26 14:31:14 -07:00
2015-09-21 20:12:55 -04:00
2015-11-02 22:15:45 +01:00
2015-10-26 14:31:14 -07:00
2015-09-28 14:58:52 -07:00