Skip to content

Commit

Permalink
extra whitespace is red. kill it with fire
Browse files Browse the repository at this point in the history
  • Loading branch information
technoweenie committed Aug 1, 2011
1 parent 1213dfe commit 42c1132
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/index.coffee
Expand Up @@ -18,9 +18,9 @@ class ScopedClient
sendingData = method.match(/^P/) and reqBody and reqBody.length > 0 sendingData = method.match(/^P/) and reqBody and reqBody.length > 0
headers.Host = @options.hostname headers.Host = @options.hostname


headers['Content-Length'] = reqBody.length if sendingData headers['Content-Length'] = reqBody.length if sendingData


port = @options.port || port = @options.port ||
ScopedClient.defaultPort[@options.protocol] || 80 ScopedClient.defaultPort[@options.protocol] || 80
client = http.createClient port, @options.hostname client = http.createClient port, @options.hostname
req = client.request method, @fullPath(), headers req = client.request method, @fullPath(), headers
Expand Down Expand Up @@ -153,4 +153,4 @@ extend = (a, b) ->
a a


exports.create = (url, options) -> exports.create = (url, options) ->
new ScopedClient url, options new ScopedClient url, options

0 comments on commit 42c1132

Please sign in to comment.