##// END OF EJS Templates
vcsserver: fixed some bytes issues with status command/read hooks info endpoint
super-admin -
r1066:443f7a81 python3
parent child Browse files
Show More
@@ -168,8 +168,8 b' def check_rhodecode_hook(hook_path):'
168 168 return False
169 169
170 170
171 def read_hook_content(hook_path):
172 content = ''
171 def read_hook_content(hook_path) -> bytes:
172 content = b''
173 173 if os.path.isfile(hook_path):
174 174 with open(hook_path, 'rb') as f:
175 175 content = f.read()
@@ -447,7 +447,7 b' class HTTPApplication(object):'
447 447
448 448 def status_view(self, request):
449 449 import vcsserver
450 return {'status': 'OK', 'vcsserver_version': vcsserver.__version__,
450 return {'status': 'OK', 'vcsserver_version': str(vcsserver.__version__),
451 451 'pid': os.getpid()}
452 452
453 453 def service_view(self, request):
General Comments 0
You need to be logged in to leave comments. Login now