Merge "Fixes bug on Windows related to a wrong API url"

This commit is contained in:
Jenkins
2012-11-15 21:18:44 +00:00
committed by Gerrit Code Review

View File

@@ -16,7 +16,7 @@
import copy
import httplib
import logging
import os
import posixpath
import socket
import StringIO
import struct
@@ -142,7 +142,7 @@ class HTTPClient(object):
conn = self.get_connection()
try:
conn_url = os.path.normpath('%s/%s' % (self.endpoint_path, url))
conn_url = posixpath.normpath('%s/%s' % (self.endpoint_path, url))
if kwargs['headers'].get('Transfer-Encoding') == 'chunked':
conn.putrequest(method, conn_url)
for header, value in kwargs['headers'].items():