Add hotfix for python-openid
This commit is contained in:
parent
ecf064d030
commit
a941b10d63
2 changed files with 17 additions and 3 deletions
|
@ -93,7 +93,10 @@ def setDefaultFetcher(fetcher, wrap_exceptions=True):
|
||||||
|
|
||||||
def usingCurl():
|
def usingCurl():
|
||||||
"""Whether the currently set HTTP fetcher is a Curl HTTP fetcher."""
|
"""Whether the currently set HTTP fetcher is a Curl HTTP fetcher."""
|
||||||
return isinstance(getDefaultFetcher(), CurlHTTPFetcher)
|
fetcher = getDefaultFetcher()
|
||||||
|
if isinstance(fetcher, ExceptionWrappingFetcher):
|
||||||
|
fetcher = fetcher.fetcher
|
||||||
|
return isinstance(fetcher, CurlHTTPFetcher)
|
||||||
|
|
||||||
class HTTPResponse(object):
|
class HTTPResponse(object):
|
||||||
"""XXX document attributes"""
|
"""XXX document attributes"""
|
||||||
|
@ -250,7 +253,7 @@ class CurlHTTPFetcher(HTTPFetcher):
|
||||||
|
|
||||||
# Remove the status line from the beginning of the input
|
# Remove the status line from the beginning of the input
|
||||||
unused_http_status_line = header_file.readline().lower ()
|
unused_http_status_line = header_file.readline().lower ()
|
||||||
while unused_http_status_line.startswith('http/1.1 100 '):
|
while unused_http_status_line.startswith('http/1.1 1'):
|
||||||
unused_http_status_line = header_file.readline()
|
unused_http_status_line = header_file.readline()
|
||||||
unused_http_status_line = header_file.readline()
|
unused_http_status_line = header_file.readline()
|
||||||
|
|
||||||
|
|
|
@ -20,6 +20,17 @@
|
||||||
tags:
|
tags:
|
||||||
- packages
|
- packages
|
||||||
|
|
||||||
|
# https://github.com/openid/python-openid/pull/76
|
||||||
|
- name: hotfix - copy over python-openid fixed messages
|
||||||
|
copy: src="{{ files }}/hotfix/python-openid/fetchers.py" dest=/usr/lib/python2.6/site-packages/openid/fetchers.py
|
||||||
|
owner=root group=root mode=0644
|
||||||
|
notify:
|
||||||
|
- restart apache
|
||||||
|
tags:
|
||||||
|
- config
|
||||||
|
- hotfix
|
||||||
|
- python-openid
|
||||||
|
|
||||||
- name: set sebooleans so ask can talk to the db
|
- name: set sebooleans so ask can talk to the db
|
||||||
action: seboolean name=httpd_can_network_connect_db
|
action: seboolean name=httpd_can_network_connect_db
|
||||||
state=true
|
state=true
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue