Changeset - 3669e58f3002
[Not reviewed]
Merge default
0 1 0
Mads Kiilerich (mads) - 5 years ago 2020-10-30 23:44:18
mads@kiilerich.com
Merge stable
1 file changed with 2 insertions and 2 deletions:
0 comments (0 inline, 0 general)
kallithea/config/middleware/pygrack.py
Show inline comments
 
@@ -124,13 +124,13 @@ class GitRepository(object):
 
                starting_values=[ascii_bytes(packet_len + server_advert + '0000')]
 
            )
 
        except EnvironmentError as e:
 
            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
 

	
 
    def backend(self, req, environ):
 
        """
 
@@ -174,13 +174,13 @@ class GitRepository(object):
 
            from kallithea.lib.vcs import get_repo
 
            repo = get_repo(self.content_path)
 
            if repo:
 
                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
 

	
 
    def __call__(self, environ, start_response):
 
        req = Request(environ)
0 comments (0 inline, 0 general)