changeset 8704:3669e58f3002

Merge stable
author Mads Kiilerich <mads@kiilerich.com>
date Fri, 30 Oct 2020 23:44:18 +0100
parents 6bde1c0a04d4 (current diff) c387989f868f (diff)
children 6329c0f26ace
files kallithea/config/middleware/pygrack.py
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/kallithea/config/middleware/pygrack.py	Tue Oct 20 00:48:55 2020 +0200
+++ b/kallithea/config/middleware/pygrack.py	Fri Oct 30 23:44:18 2020 +0100
@@ -127,7 +127,7 @@
             log.error(traceback.format_exc())
             raise exc.HTTPExpectationFailed()
         resp = Response()
-        resp.content_type = 'application/x-%s-advertisement' % str(git_command)
+        resp.content_type = 'application/x-%s-advertisement' % git_command
         resp.charset = None
         resp.app_iter = out
         return resp
@@ -177,7 +177,7 @@
                 update_server_info(repo._repo)
 
         resp = Response()
-        resp.content_type = 'application/x-%s-result' % git_command.encode('utf-8')
+        resp.content_type = 'application/x-%s-result' % git_command
         resp.charset = None
         resp.app_iter = out
         return resp