# HG changeset patch # User Mads Kiilerich # Date 1604097858 -3600 # Node ID 3669e58f3002325ce06aac73d945fc067fafc8a4 # Parent 6bde1c0a04d4be70345ea14d63475b936d558043# Parent c387989f868f2d7712de7c4de351969c502cd1fd Merge stable diff -r 6bde1c0a04d4 -r 3669e58f3002 kallithea/config/middleware/pygrack.py --- 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