Commit graph

786 commits

Author SHA1 Message Date
TJ Holowaychuk
63a4297084 Merge pull request #291 from koajs/vary
remove response.append(), use vary module
2014-06-06 23:00:39 -07:00
Jonathan Ong
c547b1fd72 0.6.3 2014-06-06 16:27:37 -07:00
Jonathan Ong
76c65422c0 update finished 2014-06-06 16:26:24 -07:00
Jonathan Ong
1a32ecac31 fix res.type= for unknown types
because we changed from mime to mime-types. ideally, we should just not
set the content-type, but this way it’s backwards compatible. we can
change it later.
2014-06-06 16:26:03 -07:00
TJ Holowaychuk
90c528c5e8 remove if (!err) from app.onerror
we assert instanceof Error right below
2014-06-05 16:37:28 -07:00
TJ Holowaychuk
f68716d8b4 Merge pull request #288 from dead-horse/issue287
asset non-error obj in app.onerror, fixed #287
2014-06-05 16:35:17 -07:00
Jonathan Ong
01dd6a33c5 context: delegate etag/last-modified 2014-06-05 16:19:29 -07:00
Jonathan Ong
fdbd16acc3 remove response.append(), use vary module 2014-06-05 16:06:15 -07:00
dead_horse
4979077562 assert non-error obj pass to app.onerror, fixed #287 2014-06-04 14:16:25 +08:00
Jonathan Ong
851160e0ae 0.6.2 2014-06-03 21:45:50 -07:00
Jonathan Ong
008f0554c6 set-type -> mime-types
removes mime dependencies from the dep tree.
liberally sets charset because some express users complained about bad
browsers using the default charset.
2014-06-03 21:44:25 -07:00
Jonathan Ong
c7f2d24851 bump should just because 2014-06-03 21:36:27 -07:00
Jonathan Ong
11cf47c8a6 remove .request accept tests the fail
due to
https://github.com/expressjs/accepts/commit/5975ce464575bd0fddfdd3d41796
958cd6bfc20b. passing nothing into accepts() is silly anyways.
2014-06-03 21:35:11 -07:00
TJ Holowaychuk
29687cb253 add linting
left out of test for now since it seems to barf on *
2014-05-16 09:23:00 -07:00
Jonathan Ong
fee913f1e2 0.6.1 2014-05-11 20:51:11 -07:00
TJ Holowaychuk
caf6d177a2 Merge pull request #280 from dead-horse/docs
add originalUrl in docs
2014-05-05 19:36:20 -07:00
dead_horse
21b7eb82b9 add originalUrl 2014-05-06 10:01:46 +08:00
TJ Holowaychuk
55ebdb522b docs 2014-05-05 08:44:00 -07:00
TJ Holowaychuk
50ffb86a40 Merge pull request #278 from dead-horse/host-setter
remove req.host=
2014-05-05 08:42:28 -07:00
dead_horse
f76268ba58 remove req.host=, fix docs 2014-05-05 12:45:33 +08:00
Jonathan Ong
137df8e5ed Merge pull request #276 from tschaub/typo
s/properly/property/
2014-05-03 14:24:07 -07:00
Tim Schaub
d7d3e84d16 Using property properly 2014-05-03 15:21:07 -06:00
TJ Holowaychuk
1d9a0e1d31 ocd 2014-05-02 12:21:55 -07:00
TJ Holowaychuk
024b490749 Merge pull request #274 from yorkie/complete-idempotent-methods
request: complete idempotent methods
2014-05-02 12:21:21 -07:00
Yazhong Liu
b969ecf223 request: complete idempotent methods
see rfc2616: http://www.w3.org/Protocols/rfc2616/rfc2616-sec9.html#sec9.1.

Intact idempotent HTTP methods should be:
GET, HEAD, PUT, DELETE, OPTIONS and TRACE
2014-05-03 02:56:08 +08:00
TJ Holowaychuk
0491dc7532 Release 0.6.0 2014-05-01 18:09:48 -07:00
TJ Holowaychuk
dc692a3c75 add test.js to gitignore 2014-05-01 18:07:46 -07:00
TJ Holowaychuk
c16211c5d6 refactor 2014-05-01 17:46:09 -07:00
TJ Holowaychuk
212137139a add installation docs back
wtf...
2014-05-01 16:36:16 -07:00
TJ Holowaychuk
f17629d19f remove .outputErrors, suppress output when handled by the dev. Closes #272 2014-05-01 16:29:37 -07:00
TJ Holowaychuk
4ff54e5c13 ocd 2014-05-01 16:25:08 -07:00
TJ Holowaychuk
80ace2c0bb add nicer error formatting 2014-05-01 16:18:40 -07:00
TJ Holowaychuk
c757034adb Merge pull request #269 from koajs/status-default-404
change .status default to 404. Closes #263
2014-05-01 15:51:41 -07:00
TJ Holowaychuk
15ab936001 change .status default to 404. Closes #263 2014-04-28 21:17:46 -07:00
dead_horse
48ac0669c5 fix content-length when body is re-assigned. Closes #267 2014-04-28 20:34:26 -07:00
TJ Holowaychuk
5e3d7f0aa0 remove mime dependency 2014-04-28 20:13:31 -07:00
TJ Holowaychuk
952dca336d rename setType -> getType
sounds weird
2014-04-28 20:12:53 -07:00
Jonathan Ong
163e59c0d5 refactor to use set-type 2014-04-27 01:53:07 -07:00
Jonathan Ong
0cacc5706a use koa-is-json 2014-04-25 00:15:33 -07:00
TJ Holowaychuk
94dd87741e ocd 2014-04-24 17:58:37 -07:00
TJ Holowaychuk
239c0ce1f9 Merge pull request #265 from dead-horse/throw-not-error
Throw not error
2014-04-24 17:58:04 -07:00
dead_horse
6a2ed3e6eb assert object type in ctx.onerror 2014-04-25 08:34:11 +08:00
dead_horse
5de9d962a0 remove unused debug 2014-04-25 00:07:37 +08:00
Jonathan Ong
dd1aef0f7b bump supertest 2014-04-19 07:46:23 -07:00
Jonathan Ong
e472a18010 refactor: use mime-extended 2014-04-19 07:45:57 -07:00
TJ Holowaychuk
74cb04e7c1 refactor 2014-04-15 08:39:40 -07:00
TJ Holowaychuk
4e44c1c49e add buffer HEAD support tests 2014-04-15 08:38:32 -07:00
TJ Holowaychuk
9a45d07fea add string HEAD support test 2014-04-15 08:37:48 -07:00
TJ Holowaychuk
0a954c8d99 ocd 2014-04-15 08:35:10 -07:00
TJ Holowaychuk
204e4f5717 Merge pull request #261 from dead-horse/simplify-respond
simplify respond
2014-04-15 08:33:25 -07:00