Permalink
Browse files

Made trace-proxy work as store-and-forward since streaming proxy does…

… not work well with bodyParser et al.
  • Loading branch information...
1 parent db17d45 commit 276f047b63e07fcb4b5d9e39603cef04d2beeee5 @shimaore committed Apr 23, 2012
Showing with 6 additions and 3 deletions.
  1. +6 −3 applications/roles/zappa/traces.coffee
@@ -12,7 +12,10 @@
uri: "http://#{@request.param 'host'}:#{@request.param 'port'}"
jar: false
timeout: 30000
- , (e) => if e? then @send e
- console.log proxy
- proxy.pipe @response
+ json: true
+ , (e,r,b) =>
+ if e?
+ @send error:e
+ else
+ @send b
return

0 comments on commit 276f047

Please sign in to comment.