Skip to content

Commit

Permalink
get(...) is now request('GET', ...)
Browse files Browse the repository at this point in the history
  • Loading branch information
Kellen Presley committed Jan 13, 2010
1 parent d4ab27c commit 1c4a9b1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sample_app/app.js
Expand Up @@ -122,8 +122,8 @@ get('/multiple/:thing/:stuff', function(params){
get('/async_example', function(params){

// This could easily be a call to CouchDB or other service
var local = require('http').createClient(9900, "localhost")
var request = local.get("/haml", { "host": "localhost" })
var local = require('http').createClient(9900, 'localhost')
var request = local.request('GET', '/haml', { 'host': 'localhost' })

request.finish(function(response) {
var body = ''
Expand Down

0 comments on commit 1c4a9b1

Please sign in to comment.