Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
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
2 changes: 1 addition & 1 deletion salt/hg/config/hg.apache.conf.jinja
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@

# A lightweight standin for revision app to maintain support for /lookup
WSGIDaemonProcess hgrev user=hg group=hg \
threads=2 processes=4 maximum-requests=1000 \
threads=1 processes=6 maximum-requests=100 \
display-name=hgrev
# The Location hack ensures the lookup app is run within
# this process group
Expand Down
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