Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions salt/hg/files/hg/src/hgrev.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ def __init__(self, verbose=False):
def successful_response(self, response, contents):
headers = [("Content-Type", "text/plain")]
response("200 OK", headers)
return [contents.encode()]
return [contents]

def failed_response(self, response, detail=""):
headers = [("Content-Type", "text/plain")]
Expand Down Expand Up @@ -46,7 +46,7 @@ def __call__(self, env, response):
command,
cwd=hg_repo,
capture_output=True,
text=True,
text=False,
shell=False,
check=True
)
Expand Down