Douglas Christopher Wilson
fbceae2716
tests: add additional res.sendFile test
...
closes #2298
2014-08-15 00:18:54 -04:00
Fabien Franzen
17cea29013
Support mounted app as any argument to app.use()
...
fixes #2277
2014-08-06 02:49:06 -04:00
Douglas Christopher Wilson
2cb029f896
Add res.sendFile
...
fixes #1906
closes #2266
2014-08-06 02:26:51 -04:00
Douglas Christopher Wilson
12e070e39a
tests: add encoding tests for res.sendfile
2014-08-04 17:38:04 -04:00
Douglas Christopher Wilson
d8237b976b
Merge tag '3.15.3' into 4.7.x
2014-08-04 17:35:42 -04:00
Douglas Christopher Wilson
e8b471ff4f
fix res.sendfile regression for serving directory index files
2014-08-04 17:30:25 -04:00
Douglas Christopher Wilson
d0b6b3dfcf
tests: change Route tests to use callback
2014-07-23 17:28:14 -04:00
Ashley Streb
11c74d72eb
Fix req.protocol for proxy-direct connections
...
fixes #2252
2014-07-23 16:08:20 -04:00
Douglas Christopher Wilson
88cffadcaa
deps: send@0.7.0
2014-07-23 14:54:33 -04:00
Ashley Streb
a28b7a85cf
Fix req.protocol for proxy-direct connections
...
fixes #2252
2014-07-23 00:19:10 -04:00
Douglas Christopher Wilson
0d77305a1a
Pass options from res.sendfile to send
...
fixes #2017
2014-07-23 00:08:15 -04:00
Douglas Christopher Wilson
e29fa25bb4
Add configurable query parser
...
closes #2215
2014-07-13 23:15:00 -04:00
Douglas Christopher Wilson
b43205ca98
perf: prevent multiple Buffer creation in res.send
2014-07-13 21:14:30 -04:00
Douglas Christopher Wilson
3e32721e24
Fix subapp.mountpath regression for app.use(subapp)
...
fixes #2233
2014-07-12 22:07:43 -04:00
Douglas Christopher Wilson
997a558a73
Accept multiple callbacks to app.use()
...
fixes #2224
2014-07-11 17:13:06 -04:00
Douglas Christopher Wilson
a01326adac
Catch errors in multiple req.param(name, fn) handlers
2014-07-11 17:12:57 -04:00
Douglas Christopher Wilson
1c3bd36be6
Support non-string path in app.use(path, fn)
...
fixes #2207
2014-07-11 16:35:37 -04:00
Douglas Christopher Wilson
4ea6f21b02
Merge tag '3.14.0'
2014-07-11 16:28:37 -04:00
Douglas Christopher Wilson
ec5b9f5c61
tests: add test for error handler in route
...
closes #2228
2014-07-11 09:35:20 -04:00
Douglas Christopher Wilson
b2382a7336
Remove unnecessary escaping in res.jsonp
2014-07-11 00:20:11 -04:00
Douglas Christopher Wilson
f684a64df7
Add explicit "Rosetta Flash JSONP abuse" protection
2014-07-11 00:15:55 -04:00
Yad Smood
544c6665f5
Fix res.send(status, num) to send num as json
...
fixes #2226
2014-07-10 23:19:57 -04:00
Douglas Christopher Wilson
968b00c3d7
tests: add missing FQDN router URL tests
2014-07-08 19:40:22 -04:00
Douglas Christopher Wilson
ef497fdae4
tests: add mounting to strict routing test
2014-07-07 23:25:05 -04:00
Douglas Christopher Wilson
23a49ff61e
Fix routing regression when altering req.method
2014-07-06 19:44:43 -04:00
Douglas Christopher Wilson
b4b2efee0f
tests: add more app.use tests
2014-07-05 11:32:44 -04:00
Douglas Christopher Wilson
e6eeec3f03
Add req.hostname
...
closes #2179
2014-07-04 14:00:37 -04:00
Douglas Christopher Wilson
269dc5323f
Invoke router.param() only when route matches
...
fixes #2206
2014-07-04 13:46:23 -04:00
Douglas Christopher Wilson
bcee730354
Merge tag '3.13.0'
2014-07-04 01:14:40 -04:00
Douglas Christopher Wilson
b601d64203
tests: fix inconsistent test
2014-07-04 00:38:59 -04:00
Douglas Christopher Wilson
ce3d1fe07e
Add headers option to res.sendfile
2014-07-03 12:53:49 -04:00
Douglas Christopher Wilson
fd35351594
Add mergeParams option to Router
...
fixes #2153
fixes #2203
2014-07-03 01:13:09 -04:00
Douglas Christopher Wilson
0ebfc6b7bf
tests: add test for OPTIONS in app.all
2014-06-23 20:35:44 -04:00
Douglas Christopher Wilson
2cccbc186e
add deprecation message to non-plural req.accepts*
2014-06-23 16:17:44 -04:00
Douglas Christopher Wilson
7f26cfca91
Fix handling when route.all is only route
2014-06-22 12:02:40 -04:00
Douglas Christopher Wilson
b89a597029
Restore req.params after invoking Router
...
fixes #2163
2014-06-22 12:02:36 -04:00
Douglas Christopher Wilson
bdfd288eec
fix behavior when handling request without routes
...
fixes #2159
2014-06-22 12:02:32 -04:00
Douglas Christopher Wilson
3ffceff3ed
Merge tag '3.12.0'
2014-06-22 11:42:15 -04:00
刘星
e606d99dc8
Fix res.attachment Unicode filenames in Safari
...
closes #2188
2014-06-20 16:55:05 -04:00
Douglas Christopher Wilson
6ee9433f29
deps: update example dependencies
2014-06-20 16:43:04 -04:00
Douglas Christopher Wilson
9c731f1883
deprecate things with depd module
2014-06-19 23:34:58 -04:00
Douglas Christopher Wilson
5a4e9125de
deps: connect@2.20.2
2014-06-19 23:24:07 -04:00
Douglas Christopher Wilson
6775658ed5
Fix persistence of req.params from app.params
...
fixes #2170
2014-06-11 18:15:09 -04:00
Douglas Christopher Wilson
3205f68510
deps: update example dependencies
2014-06-09 20:39:34 -04:00
Douglas Christopher Wilson
4d3e0d88a2
Fix catching errors from top-level handlers
2014-06-09 09:44:37 -04:00
Douglas Christopher Wilson
21393c244c
tests: add more route tests
2014-06-06 11:12:52 -04:00
Douglas Christopher Wilson
4279e6ef45
improve before hook in mvc example
2014-06-06 10:42:29 -04:00
Douglas Christopher Wilson
3db6dd752f
change confusing 404 handling in download example
2014-06-06 10:23:47 -04:00
Douglas Christopher Wilson
5019f38e29
tests: add more tests
2014-06-06 00:38:14 -04:00
Douglas Christopher Wilson
f433b7c7cf
replace utils.escape with html-escape
2014-06-03 00:37:32 -04:00
Douglas Christopher Wilson
db4448dda8
Merge tag '3.9.0'
2014-05-30 22:17:51 -04:00
Douglas Christopher Wilson
8751d7ecf8
tests: add more tests
2014-05-30 21:28:48 -04:00
Douglas Christopher Wilson
c21226aa7c
improve etag control for res.send
...
closes #1435
closes #2129
2014-05-30 21:02:21 -04:00
Douglas Christopher Wilson
3e358458f4
tests: add more etag tests
2014-05-30 19:51:32 -04:00
Douglas Christopher Wilson
766b3aecf7
deps: update example dependencies
2014-05-29 23:39:52 -04:00
Douglas Christopher Wilson
8ab96ab80d
mark res.send ETag as weak and reduce collisions
2014-05-29 23:14:21 -04:00
Douglas Christopher Wilson
1f2e00ef8d
deps: should@~4.0.0
2014-05-29 22:53:59 -04:00
Douglas Christopher Wilson
b49453cf0d
update send to 0.4.0
...
closes #2150
2014-05-29 22:32:03 -04:00
Tiago Relvao
3c0ec59432
Include ETag in HEAD requests
...
backport of commit 3c7310ebcb
2014-05-28 22:31:00 -04:00
Douglas Christopher Wilson
d4a2843500
tests: add param test with encoded value
...
closes #2143
2014-05-28 22:30:24 -04:00
Douglas Christopher Wilson
fb2d918056
fix handling of errors from param callbacks
...
fixes #2149
2014-05-28 22:26:05 -04:00
Douglas Christopher Wilson
e7ad49bbbe
tests: add accepts test with params
2014-05-28 00:30:29 -04:00
Douglas Christopher Wilson
ad9a414fae
tests: add more acceptance tests
2014-05-28 00:24:24 -04:00
Douglas Christopher Wilson
c3470c9c96
tests: add route ordering test
2014-05-23 18:46:00 -04:00
Douglas Christopher Wilson
7f049164b7
Revert "fix behavior of multiple app.VERB for the same path"
...
This reverts commit 31b2e2d7b4 .
fixes #2133
2014-05-23 18:35:20 -04:00
Douglas Christopher Wilson
db4a061ed6
Merge tag '3.8.0'
2014-05-21 02:08:04 -04:00
Douglas Christopher Wilson
f14e39d451
set proper charset in content-type for res.send
...
This will write strings to sockets with an explicit "utf8" encoding
(which is the default) and will override the charset in the
Content-Type so it properly relfects the encoding of the response.
closes #1631
closes #2092
2014-05-21 01:31:08 -04:00
Alberto Leal
084f5d891b
Keep previous Content-Type for res.jsonp
...
backport of commit be997fd654
2014-05-21 01:04:29 -04:00
Douglas Christopher Wilson
8d7d80ef9d
tests: add more tests of web-service example
2014-05-21 00:08:17 -04:00
Douglas Christopher Wilson
cf5de082b5
tests: add more tests of cookies example
2014-05-21 00:08:06 -04:00
Douglas Christopher Wilson
1944451082
tests: add more tests of negotiation example
2014-05-20 23:50:58 -04:00
Douglas Christopher Wilson
602e5a8200
tests: add more tests of mvc example
2014-05-20 23:41:09 -04:00
Douglas Christopher Wilson
83b8b7acb7
tests: add more various tests
2014-05-20 23:25:51 -04:00
Douglas Christopher Wilson
e660f19507
tests: add req.acceptsLanguage tests
2014-05-20 23:13:29 -04:00
Douglas Christopher Wilson
ff412b927d
tests: add req.acceptsEncoding tests
2014-05-20 23:08:01 -04:00
Douglas Christopher Wilson
392ef1eb06
tests: add more app.render tests
2014-05-20 22:57:00 -04:00
Douglas Christopher Wilson
e7e2592357
tests: add more app.param tests
2014-05-20 10:58:39 -04:00
Douglas Christopher Wilson
739586f96a
add req.baseUrl to access stripped path in routes
...
fixes #2078
2014-05-19 00:39:26 -04:00
Douglas Christopher Wilson
23ff74bb3f
tests: flow control with after
2014-05-18 16:33:11 -04:00
Douglas Christopher Wilson
98d17e2293
invoke router.param() only when necessary
...
fixes #2121
2014-05-18 16:21:01 -04:00
Douglas Christopher Wilson
ababa6ae5b
fix issue routing requests among sub routers
...
fixes #2121
2014-05-18 15:27:28 -04:00
Douglas Christopher Wilson
097cd0c242
Merge tag '3.7.0'
2014-05-18 11:21:30 -04:00
Douglas Christopher Wilson
1f938c560a
tests: improve examples/auth tests
2014-05-18 01:54:05 -04:00
Douglas Christopher Wilson
1717516a78
build: improve platform portability
2014-05-18 01:14:45 -04:00
Jonathan Ong
328c6d3060
remove unnecessary test/support/http
...
backport of 643397ed21
2014-05-18 00:57:54 -04:00
Douglas Christopher Wilson
566720be15
improve proxy trust with ip address list
...
closes #2099
2014-05-17 20:02:20 -04:00
Douglas Christopher Wilson
65f13c3cc6
update connect to 2.16.1
2014-05-17 14:30:52 -04:00
Douglas Christopher Wilson
31b2e2d7b4
fix behavior of multiple app.VERB for the same path
...
fixes #2116
2014-05-16 15:09:42 -04:00
Douglas Christopher Wilson
35c50601bd
Merge tag '3.6.0'
2014-05-09 17:33:26 -04:00
Douglas Christopher Wilson
bc9bcb0317
Fix req.next when inside router instance
...
fixes #2016
2014-05-09 16:53:15 -04:00
Douglas Christopher Wilson
e4302b2120
tests: fixup new json tests
2014-05-08 23:22:18 -04:00
Douglas Christopher Wilson
920f46ad65
tests: add more res.jsonp? tests
2014-05-08 21:27:01 -04:00
Douglas Christopher Wilson
35a66d8a14
tests: add test for res.format in route
...
closes #2016
2014-05-08 21:15:48 -04:00
Douglas Christopher Wilson
4e1e252e17
deprecate res.json(obj, status)
...
closes #2106
closes #2107
2014-05-08 21:11:05 -04:00
Douglas Christopher Wilson
a8bb4bab2b
tests: add test for app.delete
2014-05-08 16:40:28 -04:00
Douglas Christopher Wilson
0bbbc84959
Merge branch '4.1.x'
2014-05-08 14:45:47 -04:00
Douglas Christopher Wilson
2901bd6916
Merge branch '3.5.x' into 4.1.x
2014-05-08 14:01:02 -04:00
Douglas Christopher Wilson
d58ca520c8
Fix res.jsonp error if callback param is object
...
fixes #2104
2014-05-08 13:42:19 -04:00
Douglas Christopher Wilson
c99fa6a192
Fix req.host for IPv6 literals
...
fixes #2102
2014-05-07 14:08:08 -04:00
Alberto Leal
be997fd654
Keep previous Content-Type for res.jsonp
...
closes #2094
2014-05-02 15:01:19 -04:00
Douglas Christopher Wilson
5c3852b91c
tests: remove unused image fixture
...
closes #2091
2014-05-02 09:00:36 -04:00
Tiago Relvao
3c7310ebcb
Include ETag in HEAD requests
...
fixes #2083
2014-04-30 09:34:10 -04:00
Douglas Christopher Wilson
203fb05d3e
update example dependencies
2014-04-24 17:05:20 -04:00
Douglas Christopher Wilson
2fd3e72a19
Pass options from res.sendfile to send
...
fixes #2017
2014-04-24 16:44:06 -04:00
Andy VanWagoner
56b672e657
support non-ascii filenames in content-disposition headers
2014-04-19 21:16:11 -06:00
Ke Zhu
19983272f3
improve req.xhr test by verifying status code
2014-04-15 00:11:20 -04:00
Roman Shtylman
d72f27909f
handle thrown errors inside Route
...
close #2029
2014-04-08 14:50:26 -04:00
Roman Shtylman
cb1fbce46b
don't call done twice for thrown errors inside parameterized routes
...
fixes #1995
2014-03-23 14:42:46 -04:00
Blake Embrey
efbe1779e3
Override params every layer.
2014-03-17 15:16:26 -03:00
Blake Embrey
c7e84d8044
Clean up code and syntax issues.
2014-03-10 13:19:03 -04:00
Blake Embrey
51e80ffd48
Add tests for dynamic mounting.
2014-03-10 13:16:39 -04:00
Jonathan Ong
68996d7561
remove req.auth
2014-03-09 19:45:43 -07:00
Jonathan Ong
2064f412cb
remove res.charset usage
2014-03-07 16:46:54 -08:00
Jonathan Ong
bad55f7977
move setHeader charset patch to .set
...
note that application/json no longer adds charset=utf-8. could be a
regression.
closes #1952
See also: https://github.com/broofa/node-mime/issues/86
2014-03-07 16:32:41 -08:00
Jonathan Ong
3cf7b2e39e
refactor to use basic-auth
2014-03-07 16:18:51 -08:00
Jonathan Ong
643397ed21
remove unnecessary test/support/http
2014-03-05 22:06:14 -08:00
Jonathan Ong
85bf9ab76a
uncomment a commented out test
...
lol @visionmedia
2014-03-05 22:01:36 -08:00
Roman Shtylman
d368aed150
fix Route#all before Route#verb
...
Properly handle calling a VERB after using .all()
close #1945
2014-03-03 17:50:13 -05:00
Roman Shtylman
f8b954bcd9
make express.Router() return a Router function instance
...
Similar to how express() returns an express `app` instance which is also
a function, express.Router() returns the Router instance which is also a
function and can be easily used via another router or the app.
app.use(express.Router());
2014-02-26 20:22:11 -05:00
Roman Shtylman
6911815171
Router: add parameter handling to middleware
...
Middleware (.use) can now specify parameter arguments to trigger
Router.param loading. This is handy if you want to `.use` additional
routers but need to load certain objects before the mounted middleware
runs.
2014-02-23 19:21:13 -05:00
Roman Shtylman
0719e5f402
implement app.route()
2014-02-23 11:31:43 -05:00
Roman Shtylman
d42d8f5b07
move support for multiple res.cookie calls to lib/response
...
Patch.js is simpler and follows upstream node.js closer as a result.
2014-02-22 09:26:30 -05:00
Roman Shtylman
6835289564
remove ServerResonse.headerSent monkey patch
...
node.js ServerResponse contains a headersSent field. Use that instead of
our patched misnamed version.
2014-02-22 09:26:29 -05:00
Roman Shtylman
1396e0855d
remove last pieces of connect dependency
...
- copy over patch.js to shim ServerResponse
- bundle `static` middleware
2014-02-22 09:26:29 -05:00
Jonathan Ong
0796c1d2d2
test app.router: ignore connect method
...
so tests pass in 0.11. 0.11 client seems to throw errors more often, so
this is not an issue with express or node’s servers.
2014-02-08 11:39:26 -08:00
Jonathan Ong
aac1d52c4f
res.location: remove resolving relative urls
...
closes #1804
this is an unnecessary maintenance burden (see the number of removed
tests), especially when supporting mounting. browsers handle relative
locations, and so should all clients.
a regression could be absolute locations on a mounted app, but 1. we
can fix that later when someone complains and 2) code-smell
2014-02-08 11:37:43 -08:00
Roman Shtylman
f41d09a3cf
remove app.router and refactor middleware processing
...
This is an overhaul of middleware processing, Router and Route. Connect is no
longer used to process the middleware stack. This functionality has been
split into two parts: middleware stack and default error response.
The entry point for request processing is the `app.handle` method. It
sets up the default error response handle (to run in the event of no
other error handler) and then triggers the app router (instance of
Router) to handle the request.
The app router `handle` function contains the middleware dispatch layer
previously in the connect codebase. This layer handle the logic for
dispatching `.use` calls (stripping paths if needed). The app contains a
base router `app._router`. New routes can be created and `.use`d on this
router to organize routes into files.
Routers now have the following methods `.use`, `.all`, `.param` which
are all public.
Additionally, Routers have a `.route(path)` method which returns a new
instance of Route for the requested path. Route(s) are isolated
middleware stacks and contain methods for the HTTP verbs as well as an
`.all` method to act similar to middleware. These methods are chainable
to easily describe requirements for a route.
var route = Router.route('/foo'); // or 'app.route('/foo')'
route
.all(auth)
.get(function(...) {})
.all(more_checks)
.post(function(...) {})
Any Route and Router methods which accept handlers also accept error
(arity 4) handlers which will also behave as expected.
Finally, the `app.router` getter has been removed. Middleware and
handlers are run IN THE ORDER they are seen in the file. This means that
code which injected the `app.router` and then added error handlers (or
other middleware) will need to be updated to move those handlers after
any requests added on the app object. The examples have been updated
accordingly. This is the largest breaking change to codebases in this
commit.
2014-02-03 15:59:52 -05:00
Roman Shtylman
4983c38298
change res.locals to a plain js object.
...
Anyone who wants something fancier should use modules.
- fixes annoyance with not being able to set 'name' property on locals
2014-01-27 19:17:29 -05:00
Roman Shtylman
63c6a9c5ad
use escape-html module to escape html
...
Another util bites the dust.
2014-01-24 19:21:21 -05:00
Roman Shtylman
718e68ffae
use utils-merge module to mixin object properties
2014-01-24 19:16:37 -05:00
Jonathan Ong
121f8d02f3
Merge pull request #1889 from vesln/send-null-undefined
...
update the tests to show a difference between `send(null)` and `send(und...
2014-01-14 09:17:04 -08:00
Doug Patti
1d97599f8b
prevent incorrect automatic OPTIONS responses
...
The router has automatic handling of OPTIONS based on the registered
routes, but if you make an OPTIONS request for an endpoint that does
not exist, then it will still return a 200 with nothing allowed.
Instead, we can let the request move on down the middleware chain. This
has two benefits: first, if the route was not defined and no other
middleware handles it, it will return with a 404. Secondly, if multiple
routers are used and a later one has the route or a custom OPTIONS
defined, the first router will not respond incorrectly.
2014-01-13 20:46:07 -08:00
Roman Shtylman
5ddbb6965f
Merge pull request #1868 from dpatti/smarter-router-auto-options
...
Automatic OPTIONS response breaks with multiple routers
2014-01-13 14:45:06 -08:00
Doug Patti
a3b5f6d07f
prevent incorrect automatic OPTIONS responses
...
The router has automatic handling of OPTIONS based on the registered
routes, but if you make an OPTIONS request for an endpoint that does
not exist, then it will still return a 200 with nothing allowed.
Instead, we can let the request move on down the middleware chain. This
has two benefits: first, if the route was not defined and no other
middleware handles it, it will return with a 404. Secondly, if multiple
routers are used and a later one has the route or a custom OPTIONS
defined, the first router will not respond incorrectly.
2014-01-13 17:40:42 -05:00
Roman Shtylman
7282b50ad0
remove app.configure()
2014-01-11 10:53:54 -05:00
Roman Shtylman
8c059469fd
No 'json spaces' by default
...
Json rendering can be handled by user tools or overridden in their own
app to behave as desired. Minimizes the use of magic env settings.
2014-01-11 10:53:36 -05:00
Veselin Todorov
a36eeb96f3
update the tests to show a difference between send(null) and send(undefiend)
2014-01-03 19:47:57 +02:00
Jonathan Ong
3f14b4de1f
Merge pull request #1835 from visionmedia/change-req-params-to-object
...
change req.params to an object instead of an array
2014-01-03 03:00:13 -08:00
Jonathan Ong
cec0c06a70
refactor req.is and req.accepts*
2014-01-03 02:50:09 -08:00
Matt Copperwaite
fcbe53ddb5
Added appropriate test for more descriptive render error
2013-12-21 17:34:59 +00:00
Alex Kocharin
7b0dca0f9c
throw 400 in case of malformed paths
2013-12-11 17:14:44 -08:00
TJ Holowaychuk
c6c71abf4d
change req.params to an object instead of an array
2013-11-27 19:46:39 -08:00
Roman Shtylman
f47c0d9774
add Router.all() method
...
Similar to app.all() but specifically for attaching handlers to all
methods under a standalone router. This is useful for isolating routers
that require "middleware" like features for all routes managed by the
router.
2013-11-19 18:52:04 -05:00
Jonathan Ong
373fa55981
fix markdown example test
...
marked 0.2.10 adds ids to header elements now.
2013-11-09 19:08:25 -08:00
Jérémy Lal
c9865b821d
Test location with leading ./ and containing ..
2013-11-02 02:28:54 +01:00
Jérémy Lal
9c0de23645
Update tests expectancy of location headers
2013-11-02 02:28:49 +01:00
Jonathan Ong
2e197e2b98
be less picky with ENOENT errors in tests
...
closes #1580
2013-10-30 20:37:01 -07:00
Jonathan Ong
55d1a4f964
always send ETag when content-length > 0
...
closes #1780
2013-10-30 20:34:16 -07:00
Jonathan Ong
18264403b1
bump supertest to 0.8.1
2013-10-28 15:24:48 -07:00
Jonathan Ong
e218377a3d
check existence of jsonp callback
2013-10-15 12:39:32 -07:00
Jonathan Ong
50cb62c5d2
fix tests for should.js
2013-10-14 18:35:46 -07:00
muratgu
57e45e3af8
fixes #1600
2013-09-19 10:27:21 -07:00
TJ Holowaychuk
113ed0927d
fix test label typo
2013-09-16 23:34:16 +00:00
TJ Holowaychuk
ab8be2d741
remove second signed cookie test
...
for now
2013-09-16 23:33:42 +00:00
TJ Holowaychuk
3b53b11fcd
fix signed cookies test
2013-09-16 23:32:34 +00:00
TJ Holowaychuk
9fb661559b
refactor signed cookie tests
2013-09-16 23:24:54 +00:00
lxe
288176bbc9
Added safe encodeURIcomponent to eliminate errors on malformed captures.
2013-09-16 14:57:31 -04:00
Eduardo Sorribas
69290cad6f
res.format() now includes charset. Fixes #1744
2013-09-08 02:10:46 -04:00
TJ Holowaychuk
8e2f538983
refactor res.links()
2013-09-07 15:26:12 -07:00
Eduardo Sorribas
09bede1a92
Fix the links test so it resets the header for each test.
2013-09-07 01:10:13 -04:00
Eduardo Sorribas
7059d3b71e
Allow multiple call concatenation for res.links. Fixes #1683
2013-09-06 21:44:03 -04:00
cjihrig
e5de08faa1
add res.vary(). Closes #1682
2013-09-02 09:10:14 -07:00
TJ Holowaychuk
3ea7381dea
Merge pull request #1711 from jonjenkins/master
...
Fixes from pull request #1643
2013-09-02 08:55:23 -07:00
TJ Holowaychuk
6cf6c8b918
Revert "remove charset from json responses. Closes #1631 "
...
This reverts commit 138d74aefa .
2013-08-27 13:48:18 -07:00
Greg Methvin
3ddd8e66a7
Make req.accepts take an argument list
2013-08-16 15:19:33 -07:00
Hage Yaapa
a38bdf6758
fixed test cases for res.format
2013-08-04 20:32:08 +05:30
Jon Jenkins
bdbdab7fcc
Fixes from pull request #1643
2013-08-03 16:33:15 -05:00
Max Riveiro
54a192a5c5
Add application setting to disable ETag completely
2013-07-21 12:49:28 +04:00
TJ Holowaychuk
c3bd65eda2
Revert "remove old OPTIONS default response"
...
This reverts commit 2bba69f633 .
2013-07-16 11:22:02 -07:00
TJ Holowaychuk
ba5c48aa86
remove .version export
2013-06-27 08:38:53 -07:00
TJ Holowaychuk
8ab44081d4
add support for multiple X-Forwarded-Proto values. Closes #1646
2013-06-05 12:05:45 -07:00
TJ Holowaychuk
0431d22822
add req.secure tests
2013-06-05 11:59:47 -07:00
TJ Holowaychuk
138d74aefa
remove charset from json responses. Closes #1631
2013-06-05 11:51:59 -07:00
TJ Holowaychuk
3296ed9cb3
change generation of ETags with res.send() to GET requests only. Closes #1619
...
if for some reason this is not ideal for your use-case please let me know and comment in the issue
2013-05-10 14:43:59 -07:00
TJ Holowaychuk
8559c0e2a4
fix req.subdomains when no Host is present
2013-05-09 09:10:52 -07:00
TJ Holowaychuk
06ead58240
fix req.host when no Host is present, return undefined
2013-05-09 09:06:11 -07:00
TJ Holowaychuk
28ca1b5221
add req.host tests
2013-05-09 09:03:52 -07:00
TJ Holowaychuk
91c71d6c2e
add app.VERB() paths array deprecation warning
2013-04-15 15:18:28 -07:00
TJ Holowaychuk
37179109db
Revert "fix res.cookie() tests"
...
This reverts commit ed273448b9 .
2013-04-15 12:29:42 -07:00
Caridy Patino
0b4e2df480
add "view" constructor setting to override view behaviour
2013-04-13 09:53:50 -07:00
TJ Holowaychuk
2db135dfc7
Merge pull request #1566 from daguej/v8-context-fix
...
Possible fix for #1557
2013-04-13 09:14:41 -07:00
TJ Holowaychuk
99bc628ad1
fix long list params test
2013-04-13 09:07:48 -07:00
silentjohnny
88273a59f8
Added originalIndex to parseQuality to correctly sort long lists (v8 does unstable quicksort for length > 10)
2013-04-13 12:36:35 +02:00
TJ Holowaychuk
3b1597d79e
add req.acceptedEncodings
2013-04-12 12:55:53 -07:00
TJ Holowaychuk
ed273448b9
fix res.cookie() tests
2013-04-12 12:13:12 -07:00
Pavel Brylov
9e684d45bc
add support for custom Accept parameters
2013-04-11 08:34:10 -07:00
TJ Holowaychuk
a566624f2d
refactor
2013-04-01 11:22:16 -07:00
TJ Holowaychuk
c6d7352f5c
Merge branch 'master' of github.com:visionmedia/express
2013-04-01 11:19:02 -07:00
TJ Holowaychuk
771573be30
Merge pull request #1516 from PatternConsulting/master
...
Fix Dotted Relative Redirects in Applications Mounted on Nested Paths
2013-04-01 11:18:50 -07:00
TJ Holowaychuk
4a1fa58704
refactor req.host
2013-04-01 11:09:23 -07:00
Josh Dague
57e48c4767
Possible fix for #1557 , allows routes to be created using literal regexes across V8 contexts. Removes all uses of instanceof.
2013-04-01 14:03:32 -04:00
Thom Seddon
eed0f598a0
Remove some superfluous trailing whitespace
2013-03-01 07:47:30 +00:00
Michael Ahlers
97edb23dba
See comments.
2013-02-24 18:54:17 -05:00
Michael Ahlers
856782c81c
Never mind.
2013-02-24 18:47:43 -05:00
Michael Ahlers
a7266392f9
Although unrelated to #1516 , this broken test case is causing headaches. (This is a reasonable fix in any case.)
2013-02-24 18:43:19 -05:00
Michael Ahlers
99c9eecde5
When in Rome…
2013-02-24 18:03:29 -05:00
Michael Ahlers
4d65bbf612
Test cases for pull-request #1516 .
2013-02-24 18:01:50 -05:00
Eric Ferraiuolo
75e47f2883
Add test for "view engine" setting with leading ".".
2013-01-24 00:55:55 -05:00
TJ Holowaychuk
57cda1578d
Merge pull request #1477 from gmethvin/set_array
...
Allow setting an array of header values in the response
2013-01-23 20:29:17 -08:00
TJ Holowaychuk
49abd7bec1
merge
2013-01-23 20:21:36 -08:00
Greg Methvin
4031aaa591
Allow setting an array of header values in the response
...
Make setting multiple header values using an array work as expected.
If the header value is an array, coerce the values to strings instead
of the entire array.
Fixes #1419 .
2013-01-22 18:32:22 -08:00
Greg Methvin
ba00e23630
Add subdomain offset setting
...
Add a setting "subdomain offset" for the app, which can be used to
change the behavior of req.subdomains. This is useful when our "base"
domain contains more than two parts, e.g. example.co.uk, and also
when we are running locally with domains like xxx.local.
The default behavior is still to return all but the last two parts.
2013-01-20 19:27:58 -08:00
TJ Holowaychuk
ab75fa048e
refactor vhost example
2013-01-14 09:51:56 +01:00
TJ Holowaychuk
bb29da5980
refactor vhost example
2013-01-13 11:32:53 -08:00
Julian Gruber
a4d7b75129
implemented res.location
2013-01-13 16:07:11 +01:00
Greg Methvin
17bf04d1ef
Allow colons in passwords for req.auth
...
Passwords in basic auth can contain colons (as per RFC2617), while
usernames cannot, so assume everything after the colon is a password.
This makes req.auth return the correct value if the user uses a colon
in his password.
2013-01-06 03:02:40 -05:00
Greg Methvin
39ee6f8e79
Don't mangle the options object in res.cookie
...
Make a copy of the cookie options before mutating it to pass to
cookie.serialize. This prevents unexpected things from happening when
we try to use the same options object multiple times.
Also add a test to verify that the options object does not change
after a request is made.
2013-01-03 02:00:15 -05:00
Guillermo Rauch
64a234958a
fix jsonp whitespace escape. Closes #1132
2012-12-28 10:24:55 -07:00
Alex Weeks
a1e42ac33f
Explicitly remove Transfer-Encoding header from 204 and 304 responses
...
Per RFC 2616 §10.3.6 & §10.2.5 (http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html ) "The [204/304] response MUST NOT contain a message-body, and thus is always terminated by the first empty line after the header fields."
2012-12-19 10:53:17 -08:00
Thorsten Lorenz
ce7d7bfd8d
add throwing when a non-function is passed to a route
2012-12-14 15:06:17 -08:00
TJ Holowaychuk
9bd86cdddc
Revert "add 'etag' option"
...
This reverts commit 6f6eec7d8d .
2012-12-06 15:15:49 -08:00
Max Riveiro
6f6eec7d8d
add 'etag' option
2012-12-05 16:49:09 -08:00
TJ Holowaychuk
e2ad0d3d6e
merge
2012-11-21 08:46:36 -08:00
TJ Holowaychuk
763be5e631
Merge pull request #1426 from piscis/master
...
change crc generator because of license issue
2012-11-21 08:45:42 -08:00
TJ Holowaychuk
c8526932f3
Merge branch 'master' of github.com:visionmedia/express
2012-11-21 08:43:13 -08:00
Alexander Pirsig
18a3cc03ee
use buffer-crc32 module for ETag CRC generator
2012-11-21 12:44:07 +01:00
Greg Methvin
ea5e254c7d
Escape URLs in text/plain res.redirect response
...
Escape the URL printed by res.redirect using URL encoding. This
prevents some browsers (primarily old versions of IE) from attempting
to sniff the Content-Type and evaluate it as HTML, which causes a
cross-site scripting vulnerability.
2012-11-21 02:22:37 -05:00
TJ Holowaychuk
ab9c275bde
fix cookie max-age
...
the cookie module we depend on never used to
set this value, however now it does :)
2012-11-13 09:08:37 -08:00
TJ Holowaychuk
a7ca3817db
fix route chaining regression. Closes #1397
2012-11-04 12:28:35 -08:00
TJ Holowaychuk
c29cfa823d
change res.redirect() to utilize a pathname-relative Location again. Closes #1382
...
nginx does not seem to set Host correctly,
though Location should be relative as per RFC
myself nor anyone else can report a client
that does not handle relative correctly so
this will be fine until then
2012-10-23 14:08:18 -07:00
TJ Holowaychuk
d6cb449011
add "Basic" check to req.auth
2012-10-19 11:46:46 -07:00
TJ Holowaychuk
7bf4ad30fc
add req.auth test coverage
2012-10-19 11:44:44 -07:00
TJ Holowaychuk
b3936b96e5
add cb && cb(payload) to res.jsonp(). Closes #1374
2012-10-16 11:57:37 -07:00
TJ Holowaychuk
d653d2308b
refactor ejs example
2012-10-09 19:26:17 -07:00
TJ Holowaychuk
0dd80e7b50
refactor routes.error tests
2012-10-09 19:09:12 -07:00
TJ Holowaychuk
78d5b72081
rename a test file
2012-10-09 19:06:23 -07:00
Sean Soong
e0df865401
make application routing callback behave the same as middleware, fix logic and add test code
2012-10-09 19:05:30 -07:00
lihan
3b6d683b7f
set the NODE_ENV to development for the development view cache test
2012-10-06 17:58:17 -04:00
TJ Holowaychuk
56ffab045e
add backwards compat for res.redirect() status. Closes #1336
2012-09-26 09:07:22 -07:00
TJ Holowaychuk
f0d5b3b368
remove non-primitive string support for res.send()
...
kinda silly.. valueOf() before if you happen to use
boxed strings, otherwise it is unfair that dont support
other boxed primitives all over, and quite frankly no one does
2012-09-26 09:04:26 -07:00
TJ Holowaychuk
0d3a637389
add support for res.json() to retain previously defined Content-Types. Closes #1349
2012-09-26 09:00:52 -07:00
TJ Holowaychuk
1029b0b97f
adjust locals tests
2012-09-25 08:45:09 -07:00
TJ Holowaychuk
568e0d297a
add "application/octet-stream" redirect Accept test case. Closes #1317
2012-09-03 16:17:49 -07:00
TJ Holowaychuk
a6caa267bd
add res.jsonp(). Closes #1307
...
this also removes the jsonp
2012-08-30 09:29:43 -07:00
TJ Holowaychuk
cdb3e9dc0d
fix etag quoting. Closes #1310
2012-08-30 08:49:48 -07:00
TJ Holowaychuk
eec31d7126
fix acceptance tests
2012-08-29 10:47:29 -07:00
TJ Holowaychuk
89c5affc3b
fix jsonp callback char restrictions
2012-08-28 18:11:49 -07:00
TJ Holowaychuk
2bba69f633
remove old OPTIONS default response
...
relatively useless since its so non-informative,
let me know if anyone has an objection to this,
i think its best to define these for your API
2012-08-28 17:24:52 -07:00
TJ Holowaychuk
f2d7bbe0e9
change jsonp callback default to false. Closes #1304
2012-08-28 09:08:41 -07:00
TJ Holowaychuk
3f7e3a714e
drop to assert() for less crazy error message
2012-08-16 10:14:05 -07:00
Tony Edwards
0217e6ce96
Fix signed cookie prefix
...
Update res.cookie to prefix signed cookies with 's:'
2012-08-13 20:01:17 -07:00
TJ Holowaychuk
bac0c64633
escape res.redirect() link
2012-08-02 19:41:37 -07:00
TJ Holowaychuk
a50f02e87d
update cookie dep
2012-07-24 13:30:44 -07:00
TJ Holowaychuk
a93d375acc
add res.redirect("//foo.com") support
2012-07-18 09:29:11 -07:00
TJ Holowaychuk
d66f0e5eb9
change res.redirect() to use scheme-relative urls
2012-07-18 09:07:21 -07:00
TJ Holowaychuk
48be9233d8
add res.download() content-disposition on error removal test
2012-07-13 09:24:09 -07:00
TJ Holowaychuk
ab61837885
change res.sendfile() to use send() module
2012-07-13 08:58:40 -07:00
riadh
5426eb0b62
add "jsonp callback name" setting
2012-07-06 08:53:31 -07:00
TJ Holowaychuk
b9e32ec2c4
styling
2012-07-06 08:15:28 -07:00
TJ Holowaychuk
32b8613708
fix matchRequest tests
2012-07-06 08:14:53 -07:00
TJ Holowaychuk
e770b674ff
Merge pull request #1212 from riadhchtara/Issue944
...
issue#944 : Changing Router#match() signature
2012-07-06 08:08:11 -07:00
TJ Holowaychuk
4f7c4d1051
remove app.locals.use and res.locals.use
...
there are a few reasons for this:
a) less API, simpler implementation ...
b) difficult to inherit cleanly from subapps
c) effectively the same as parallelized middleware (use connect-parallel for example)
lastly this api in a sense promotes some obscure uses since
they may be scattered throughout rather than explicitly
given to specific routes or used globally as middleware etc
2012-07-05 18:46:19 -07:00
TJ Holowaychuk
78845e7d23
fix app.locals.use() when mounting apps
2012-07-05 18:31:02 -07:00
riadh
0a210cce7a
fix to test
2012-07-04 18:51:48 +02:00
riadhchtara
f110248462
Issue 944:
...
Changing Router#match() signature from (req[, i]) to (method, url[, i]), and making it public
2012-07-04 13:19:40 +02:00
TJ Holowaychuk
2173d00829
whitespace ocd
2012-07-03 13:57:40 -07:00
riadh
3827f5ef8b
tests for issues 1115 fix for utils
2012-07-03 13:56:21 -07:00
TJ Holowaychuk
5415c98ff9
add route-map tests
2012-06-30 12:18:32 -07:00
TJ Holowaychuk
70d68419b0
Added res.json(obj, status) support back for BC
2012-06-27 13:34:53 -07:00
TJ Holowaychuk
0f5560eebd
updated tests to use "supertest"
2012-06-26 17:14:07 -07:00
TJ Holowaychuk
170dcc2907
Added "methods" dep
2012-06-26 11:38:55 -07:00
TJ Holowaychuk
18d6c78ef4
fixed a test race condition
2012-06-25 12:42:51 -07:00
TJ Holowaychuk
140efb574c
Revert "Added + support to the router"
...
This reverts commit 6aaa7dc26d .
2012-06-22 08:20:23 -07:00
TJ Holowaychuk
3c0c96114f
Added res.send(body, status) support back for backwards compat
2012-06-21 16:37:26 -07:00
TJ Holowaychuk
f4c8a59b17
Added req.range(size)
2012-06-17 17:33:05 -07:00
TJ Holowaychuk
e6129d8ba5
Added res.links(obj)
2012-06-17 16:34:42 -07:00
TJ Holowaychuk
82b5b12ca7
Added .default() support to res.format()
2012-06-17 13:15:55 -07:00
TJ Holowaychuk
108e66c24b
Fixed res.send() freshness check, respect res.statusCode
2012-06-15 15:42:46 -07:00
TJ Holowaychuk
640cf4ca21
Changed: res.send() always checks freshness
2012-06-15 11:38:51 -07:00
TJ Holowaychuk
4475e335ef
mime export test
2012-06-08 09:47:45 -07:00
TJ Holowaychuk
6aaa7dc26d
Added + support to the router
2012-06-06 14:38:22 -07:00
TJ Holowaychuk
ebf60d2340
coerce res.cookie values to strings
2012-06-06 12:34:51 -07:00
TJ Holowaychuk
02d43846f6
fixing cookies for connect 2.3.1
2012-06-06 12:25:14 -07:00
TJ Holowaychuk
2b90cd7d51
Added req.host
2012-06-05 19:24:49 -07:00
TJ Holowaychuk
d5fde6a4b9
added test to illustrate req.params as an array
2012-06-05 19:02:28 -07:00
TJ Holowaychuk
1311f2ac25
Fixed res.redirect() 406. Closes #1154
2012-06-01 09:14:27 -07:00
TJ Holowaychuk
685eec0149
assertion for req.get() => undefined. Closes #1152
2012-05-30 14:25:43 -07:00
TJ Holowaychuk
fd53197b46
Added req.ip tests
2012-05-29 18:46:37 -07:00
TJ Holowaychuk
d84d0b69ef
Added req.ip
2012-05-29 18:46:07 -07:00
TJ Holowaychuk
b694ba27be
Changed: dont reverse req.ips
...
parse them as-is. im impartial about
the ordering but this spares some CPU. if you
prefer the other way let me know
2012-05-29 18:41:00 -07:00
TJ Holowaychuk
e3cbac2d77
Fixed setting check for req.ips
2012-05-29 18:36:46 -07:00
TJ Holowaychuk
1150a88001
Added { signed: true } option to res.cookie()
2012-05-27 11:51:32 -07:00
TJ Holowaychuk
d6ca5f71bc
Added test for res.sendfile() express.static() options
2012-05-10 18:00:41 -07:00
TJ Holowaychuk
cdca9cf88f
Added res.download() body test
2012-05-10 17:15:50 -07:00
TJ Holowaychuk
5840b42f4a
Added res.download() tests
2012-05-10 17:11:43 -07:00
TJ Holowaychuk
a5be68b5b2
refactored res.get() tests
2012-05-10 13:59:27 -07:00
TJ Holowaychuk
9fda13bc25
Added url rewriting test
2012-05-10 13:13:03 -07:00
TJ Holowaychuk
df2584cc3b
Added: allow [] in jsonp callback. Closes #1128
2012-05-09 09:39:52 -07:00
TJ Holowaychuk
9ed1f2a446
Removed blog example
...
need a better one
2012-05-07 12:52:56 -07:00
TJ Holowaychuk
6e26a8d366
fixed two res.locals.use() tests
2012-05-03 08:45:07 -07:00
TJ Holowaychuk
dd33ef2eb6
Added res.locals.use(). Closes #1120
2012-05-03 08:42:18 -07:00
TJ Holowaychuk
18cdb3d845
Added public app.routes. Closes #887
...
keep things simple for now :)
2012-05-02 16:19:41 -07:00
TJ Holowaychuk
e9cd82b72d
more * tests
2012-05-02 15:52:26 -07:00
TJ Holowaychuk
4d9ad21047
refactored * routing test
2012-05-02 15:49:38 -07:00
TJ Holowaychuk
579a1be7c8
Added res.send() If-None-Match test
2012-04-28 20:02:38 -07:00
TJ Holowaychuk
c0a68fcd0d
Added Buffer ETag support to res.send()
2012-04-28 20:00:30 -07:00
TJ Holowaychuk
67ddb429e3
Added: coerce res.set() values to strings
...
if you use res.get() this can bite you in the ass
if you set an etag to a number for example :)
good times
2012-04-26 13:52:37 -07:00
TJ Holowaychuk
9719b58575
error/index.js
2012-04-26 04:57:28 -07:00
TJ Holowaychuk
2c14d0c966
clean up weird whitespace in error-pages acceptance tests
2012-04-26 04:55:06 -07:00
TJ Holowaychuk
c130918135
more mvc acceptance tests
2012-04-26 04:42:22 -07:00
TJ Holowaychuk
b7b032f8e0
test for updating mvc user
2012-04-26 04:34:37 -07:00
TJ Holowaychuk
3c12757d9e
more tests
2012-04-26 04:10:57 -07:00
TJ Holowaychuk
1e85178c73
started mvc acceptance tests
2012-04-26 04:02:14 -07:00
Pierre Matri
22668555ad
Fixed req.send tests for string objects
2012-04-22 14:06:13 +02:00
Pierre Matri
0f585931a4
Make string object behave like string literals with res.send
2012-04-22 13:49:50 +02:00
TJ Holowaychuk
b55eb5acf5
removed format acceptance tests
2012-04-17 20:26:28 -07:00
TJ Holowaychuk
79ce6eda6f
Fixed multipart acceptance test
2012-04-17 20:18:33 -07:00
TJ Holowaychuk
9f7c9cfc4c
added grey.png test fixture
2012-04-17 20:16:58 -07:00
TJ Holowaychuk
089a83363f
Changed: enable "jsonp callback" as a default
2012-04-15 11:20:25 -07:00
TJ Holowaychuk
12e087820c
Added: res.format() sets Vary: Accept
2012-04-12 20:11:15 -07:00
TJ Holowaychuk
8dc001567b
removed res.cache()
...
too specific
2012-04-12 19:46:53 -07:00
TJ Holowaychuk
9af3256f72
added jsonp test
2012-04-11 20:27:21 -07:00
TJ Holowaychuk
aa4ec8f3e2
fixed glob example
2012-04-11 13:56:08 -07:00
TJ Holowaychuk
5ea78cf259
ocd
2012-04-11 13:50:41 -07:00
TJ Holowaychuk
600eaea2d1
fixed acceptance tests
2012-04-11 12:49:18 -07:00
TJ Holowaychuk
24a4e95ffe
Changed to allow extname or type/subtype only. Closes #1072
2012-04-10 12:19:34 -07:00
TJ Holowaychuk
67ca22b6e4
throw when callback is not given to app.engine()
2012-04-04 12:30:25 -07:00
TJ Holowaychuk
2079ccbf42
updated signed cookie tests
2012-04-02 16:00:23 -07:00
TJ Holowaychuk
5ec88b0f6c
typo
2012-04-02 15:56:58 -07:00
TJ Holowaychuk
b0bcd27124
removed req.signedCookie tests, this is connect
2012-04-02 15:56:40 -07:00
TJ Holowaychuk
4dfee21e91
removed req.cookies tests, this is connect
2012-04-02 15:56:21 -07:00
TJ Holowaychuk
04d43d60b7
added nicer error messages for failed view lookup. Closes #1065
2012-04-02 15:47:10 -07:00
TJ Holowaychuk
082ba88084
tabs -> spaces
2012-04-02 15:41:04 -07:00
TJ Holowaychuk
6d323d3ff7
added param decoding test
2012-04-02 15:15:05 -07:00
TJ Holowaychuk
54c3d5c113
reverse req.ips array
2012-03-29 16:39:32 -07:00
TJ Holowaychuk
6d0f9a37a2
req.ipds doesnt need "trust proxy"
...
not really anyway, if you use this
you better trust it :)
2012-03-29 16:36:36 -07:00
TJ Holowaychuk
dd468fbe9a
Added req.ips
2012-03-29 16:26:59 -07:00
TJ Holowaychuk
d6d16b7899
Added req.accepts() comma-delimited string support
2012-03-24 11:36:52 -07:00
TJ Holowaychuk
86a9e0803a
refactored utils.accepts()
2012-03-24 11:32:28 -07:00
TJ Holowaychuk
fdf96922b5
added res.json() array test to illustrate that it works
2012-03-24 11:13:53 -07:00
TJ Holowaychuk
298899d02c
Added array support. Closes #1053
2012-03-23 17:58:41 -07:00
TJ Holowaychuk
ac3d002cb2
added "view cache" in production test
2012-02-26 11:56:49 -08:00
TJ Holowaychuk
ada2d0c627
added app.param() array test
2012-02-26 11:52:23 -08:00
TJ Holowaychuk
286d3a1ff8
added another app.param() test
2012-02-26 11:50:32 -08:00
TJ Holowaychuk
937f01a225
added app.param() tests
2012-02-26 11:46:44 -08:00
TJ Holowaychuk
eb3105ef25
Added extname support to res.format(). Closes #1024
2012-02-23 10:58:06 -08:00
TJ Holowaychuk
ffcaa04d2c
renamed res.respondTo() to res.format()
...
since you are not really responding with it,
its basically as switch
2012-02-22 19:59:52 -08:00
TJ Holowaychuk
a47660ba67
refactored res.redirect() with respondTo()
2012-02-22 19:58:36 -08:00
TJ Holowaychuk
4e332452b7
Added req.subdomains
2012-02-22 16:36:13 -08:00
TJ Holowaychuk
141929cd6e
typo
2012-02-21 10:23:20 -08:00
TJ Holowaychuk
ec03968bd4
added test for respondTo() callback args
2012-02-21 09:30:05 -08:00
TJ Holowaychuk
a21435cb05
updated content-negotiation example
2012-02-18 17:37:47 -08:00
TJ Holowaychuk
bdfa6d1fe7
Added: res.respondTo() defaults the content-type
2012-02-18 17:23:02 -08:00
TJ Holowaychuk
b565e258cb
Added res.respondTo(obj)
2012-02-18 17:13:40 -08:00
TJ Holowaychuk
73caacbd42
mounting sucks, removing this example
2012-02-18 14:06:41 -08:00
TJ Holowaychuk
b667bda8f2
y u no space?
2012-02-18 14:06:22 -08:00
TJ Holowaychuk
463e38cf67
y u no space?
2012-02-18 14:05:57 -08:00
TJ Holowaychuk
83c8d65e3d
styling
2012-02-18 14:05:05 -08:00
TJ Holowaychuk
9548e7d1e2
removed hello world acceptance tests
2012-02-18 14:04:25 -08:00
TJ Holowaychuk
ee290d82d1
fixing acceptance tests
2012-02-18 14:04:11 -08:00