Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

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

…rojects
  • Loading branch information...
commit 8dcf0969474ea524b85254286c2541edc4b0f143 1 parent 6b97559
Robert Coup authored December 23, 2010

Showing 1 changed file with 2 additions and 0 deletions. Show diff stats Hide diff stats

  1. 2  lighthouse.py
2  lighthouse.py
@@ -163,6 +163,8 @@ def _get_data(self, path):
163 163
 		if self.url != None:
164 164
 			endpoint = os.path.join(self.url, path)
165 165
 			req = urllib2.Request(endpoint)
  166
+			if self.token:
  167
+				req.add_header('X-LighthouseToken', self.token)
166 168
 			resp = urllib2.urlopen(req)
167 169
 			data = resp.read()
168 170
 			return self._parse_xml(data)

0 notes on commit 8dcf096

Please sign in to comment.
Something went wrong with that request. Please try again.