Skip to content

Commit

Permalink
cool
Browse files Browse the repository at this point in the history
  • Loading branch information
defunkt committed Dec 14, 2010
1 parent 644a916 commit 77d2414
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions botart.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ env = process.env
ua = 'botart 1.0'
username = env.BOTART_USERNAME
password = env.BOTART_PASSWORD
auth = 'Basic ' + new Buffer(username + ':' + password).toString('base64')

request = (method, path, body, callback) ->
if match = path.match(/^(https?):\/\/([^/]+?)(\/.+)/)
Expand All @@ -36,7 +35,7 @@ request = (method, path, body, callback) ->
path = match[3]
else
headers =
Authorization : auth
Authorization : 'Basic '+new Buffer("#{username}:#{password}").toString('base64')
Host : 'convore.com'
'Content-Type' : 'application/json'
'User-Agent' : ua
Expand Down

0 comments on commit 77d2414

Please sign in to comment.