|
|
fe4262 |
diff --git a/rhn/connections.py b/rhn/connections.py
|
|
|
fe4262 |
index 66ae4d9..85992e7 100644
|
|
|
fe4262 |
--- a/rhn/connections.py
|
|
|
fe4262 |
+++ b/rhn/connections.py
|
|
|
fe4262 |
@@ -155,8 +155,8 @@ class HTTPProxyConnection(HTTPConnection):
|
|
|
fe4262 |
return
|
|
|
fe4262 |
# Authenticated proxy
|
|
|
fe4262 |
userpass = "%s:%s" % (self.__username, self.__password)
|
|
|
fe4262 |
- enc_userpass = base64.encodestring(userpass).replace("\n", "")
|
|
|
fe4262 |
- self.putheader("Proxy-Authorization", "Basic %s" % enc_userpass)
|
|
|
fe4262 |
+ enc_userpass = base64.encodestring(i18n.bstr(userpass)).replace(i18n.bstr("\n"), i18n.bstr(""))
|
|
|
fe4262 |
+ self.putheader("Proxy-Authorization", "Basic %s" % i18n.sstr(enc_userpass))
|
|
|
fe4262 |
|
|
|
fe4262 |
def _set_hostport(self, host, port):
|
|
|
fe4262 |
(self.host, self.port) = self._get_hostport(host, port)
|
|
|
fe4262 |
diff --git a/rhnlib.spec b/rhnlib.spec
|
|
|
fe4262 |
index 36bf3dc..38417c7 100644
|
|
|
fe4262 |
--- a/rhnlib.spec
|
|
|
fe4262 |
+++ b/rhnlib.spec
|
|
|
fe4262 |
@@ -7,7 +7,7 @@
|
|
|
fe4262 |
Summary: Python libraries for the Spacewalk project
|
|
|
fe4262 |
Name: rhnlib
|
|
|
fe4262 |
Version: 2.8.6
|
|
|
fe4262 |
-Release: 6%{?dist}
|
|
|
fe4262 |
+Release: 7%{?dist}
|
|
|
fe4262 |
URL: https://github.com/spacewalkproject/spacewalk
|
|
|
fe4262 |
Source0: https://github.com/spacewalkproject/spacewalk/archive/%{name}-%{version}.tar.gz
|
|
|
fe4262 |
|
|
|
fe4262 |
@@ -74,6 +74,9 @@ make -f Makefile.rhnlib
|
|
|
fe4262 |
%endif
|
|
|
fe4262 |
|
|
|
fe4262 |
%changelog
|
|
|
fe4262 |
+* Mon Feb 04 2019 Michael Mraka <michael.mraka@redhat.com> 2.8.6-7
|
|
|
fe4262 |
+- Resolves: #1666099 - python3 is picky about bytes and string
|
|
|
fe4262 |
+
|
|
|
fe4262 |
* Wed Dec 19 2018 Michael Mraka <michael.mraka@redhat.com> 2.8.6-6
|
|
|
fe4262 |
- Resolves: #1652859 - python3 http.client does not contain _set_hostport()
|
|
|
fe4262 |
|