vcs: added headers into stream call too
This commit is contained in:
parent
455020bf4a
commit
84412730da
1 changed files with 5 additions and 1 deletions
|
|
@ -106,7 +106,11 @@ def _remote_call(url, payload, exceptions_map, session):
|
|||
|
||||
def _streaming_remote_call(url, payload, exceptions_map, session, chunk_size):
|
||||
try:
|
||||
response = session.post(url, data=msgpack.packb(payload))
|
||||
headers = {
|
||||
'X-RC-Method': payload.get('method'),
|
||||
'X-RC-Repo-Name': payload.get('_repo_name')
|
||||
}
|
||||
response = session.post(url, data=msgpack.packb(payload), headers=headers)
|
||||
except pycurl.error as e:
|
||||
msg = '{}. \npycurl traceback: {}'.format(e, traceback.format_exc())
|
||||
raise exceptions.HttpVCSCommunicationError(msg)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue