diff --git a/pyghmi/util/webclient.py b/pyghmi/util/webclient.py index d0122595..5b8a8bea 100644 --- a/pyghmi/util/webclient.py +++ b/pyghmi/util/webclient.py @@ -292,6 +292,8 @@ class SecureHTTPConnection(httplib.HTTPConnection, object): def request(self, method, url, body=None, headers=None, referer=None): if headers is None: headers = self.stdheaders.copy() + else: + headers = headers.copy() if method == 'GET' and 'Content-Type' in headers: del headers['Content-Type'] if method == 'POST' and body and 'Content-Type' not in headers: