18
18
def archive_url(self, archive_name, query):
19
19
path = '/%s' % quote(archive_name)
21
return urlunparse(('http', self.netloc, path, '', query_string, ''))
21
return urlunparse(('http', self.netloc, path, '', query, ''))
23
23
def _get_connection(self):
24
25
return httplib.HTTPConnection(self.host, self.port)
26
27
def _verb_archive(self, verb, archive_name, query, body=None):
27
28
url = self.archive_url(archive_name, query)
28
30
connection = self._get_connection()
29
31
connection.request(verb, url, body)
30
32
return connection.getresponse()