##// END OF EJS Templates
vcs: added headers into stream call too
super-admin -
r4888:279ce63e default
parent child Browse files
Show More
@@ -106,7 +106,11 b' def _remote_call(url, payload, exception'
106
106
107 def _streaming_remote_call(url, payload, exceptions_map, session, chunk_size):
107 def _streaming_remote_call(url, payload, exceptions_map, session, chunk_size):
108 try:
108 try:
109 response = session.post(url, data=msgpack.packb(payload))
109 headers = {
110 'X-RC-Method': payload.get('method'),
111 'X-RC-Repo-Name': payload.get('_repo_name')
112 }
113 response = session.post(url, data=msgpack.packb(payload), headers=headers)
110 except pycurl.error as e:
114 except pycurl.error as e:
111 msg = '{}. \npycurl traceback: {}'.format(e, traceback.format_exc())
115 msg = '{}. \npycurl traceback: {}'.format(e, traceback.format_exc())
112 raise exceptions.HttpVCSCommunicationError(msg)
116 raise exceptions.HttpVCSCommunicationError(msg)
General Comments 0
You need to be logged in to leave comments. Login now