Show More
@@ -27,6 +27,7 b' import logging' | |||||
27 | import urlparse |
|
27 | import urlparse | |
28 | from cStringIO import StringIO |
|
28 | from cStringIO import StringIO | |
29 |
|
29 | |||
|
30 | import rhodecode | |||
30 | from rhodecode.lib.vcs.conf import settings |
|
31 | from rhodecode.lib.vcs.conf import settings | |
31 | from rhodecode.lib.vcs.backends import get_vcs_instance, get_backend |
|
32 | from rhodecode.lib.vcs.backends import get_vcs_instance, get_backend | |
32 | from rhodecode.lib.vcs.exceptions import ( |
|
33 | from rhodecode.lib.vcs.exceptions import ( | |
@@ -141,6 +142,7 b' class CurlSession(object):' | |||||
141 | curl.setopt(curl.HTTPHEADER, ["Expect:"]) |
|
142 | curl.setopt(curl.HTTPHEADER, ["Expect:"]) | |
142 | curl.setopt(curl.TCP_NODELAY, True) |
|
143 | curl.setopt(curl.TCP_NODELAY, True) | |
143 | curl.setopt(curl.PROTOCOLS, curl.PROTO_HTTP) |
|
144 | curl.setopt(curl.PROTOCOLS, curl.PROTO_HTTP) | |
|
145 | curl.setopt(curl.USERAGENT, 'RhodeCode HTTP {}'.format(rhodecode.__version__)) | |||
144 | self._curl = curl |
|
146 | self._curl = curl | |
145 |
|
147 | |||
146 | def post(self, url, data, allow_redirects=False): |
|
148 | def post(self, url, data, allow_redirects=False): |
General Comments 0
You need to be logged in to leave comments.
Login now