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)