# HG changeset patch # User RhodeCode Admin # Date 2023-02-03 09:35:08 # Node ID 279ce63e0cbcd6d323b55ada58be4a4b144f2941 # Parent ae398e6123db583269b7b51607cd1dfc83affea8 vcs: added headers into stream call too diff --git a/rhodecode/lib/vcs/client_http.py b/rhodecode/lib/vcs/client_http.py --- a/rhodecode/lib/vcs/client_http.py +++ b/rhodecode/lib/vcs/client_http.py @@ -106,7 +106,11 @@ def _remote_call(url, payload, exception 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)