Permalink
Browse files

Add X-LighthouseToken to GET requests, needed for access to private p…

…rojects
  • Loading branch information...
1 parent 6b97559 commit 8dcf0969474ea524b85254286c2541edc4b0f143 @rcoup rcoup committed Dec 22, 2010
Showing with 2 additions and 0 deletions.
  1. +2 −0 lighthouse.py
View
@@ -163,6 +163,8 @@ def _get_data(self, path):
if self.url != None:
endpoint = os.path.join(self.url, path)
req = urllib2.Request(endpoint)
+ if self.token:
+ req.add_header('X-LighthouseToken', self.token)
resp = urllib2.urlopen(req)
data = resp.read()
return self._parse_xml(data)

0 comments on commit 8dcf096

Please sign in to comment.