Skip to content

Commit

Permalink
Merge pull request hubotio#702 from github/campfire-adapter-user-agent
Browse files Browse the repository at this point in the history
Campfire Adapter User Agent: Guard against nil robot
  • Loading branch information
technicalpickles committed May 15, 2014
2 parents 3ea87dd + aff09bf commit 6c27217
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/adapters/campfire.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ class CampfireStreaming extends EventEmitter
headers =
"Host" : "streaming.campfirenow.com"
"Authorization" : self.authorization
"User-Agent" : "Hubot/#{@robot.version} (#{@robot.name})"
"User-Agent" : "Hubot/#{@robot?.version} (#{@robot?.name})"

options =
"agent" : false
Expand Down Expand Up @@ -257,7 +257,7 @@ class CampfireStreaming extends EventEmitter
"Authorization" : @authorization
"Host" : @host
"Content-Type" : "application/json"
"User-Agent" : "Hubot/#{@robot.version} (#{@robot.name})"
"User-Agent" : "Hubot/#{@robot?.version} (#{@robot?.name})"

options =
"agent" : false
Expand Down

0 comments on commit 6c27217

Please sign in to comment.