Commit 5749f190 authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

http header value should not contain newlines.

that will raise an exception with Python 2.7.10.
parent 4ffdaa40
......@@ -48,7 +48,7 @@ class ShaCacheMixin(object):
self.shacache.publish()
self.header_dict = {
'Content-Type': 'application/json',
'Authorization': 'Basic %s' % (base64.encodestring('ERP5TypeTestCase:'))
'Authorization': 'Basic %s' % (base64.encodestring('ERP5TypeTestCase:').strip())
}
self.shacache_url = self.shacache.absolute_url()
self.tic()
......
......@@ -72,7 +72,7 @@ class ShaDirMixin(object):
self.header_dict = {
'Content-Type': 'application/json',
'Authorization': 'Basic %s' % (base64.encodestring('ERP5TypeTestCase:'))
'Authorization': 'Basic %s' % (base64.encodestring('ERP5TypeTestCase:').strip())
}
module = self.portal.web_site_module
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment