=> dc77f3eac12461befeb164aac612492b0e87b3b1
[1mdiff --git a/booster.py b/booster.py[m [1mindex 1895ff9..45e7655 100755[m [1m--- a/booster.py[m [1m+++ b/booster.py[m [36m@@ -17,7 +17,7 @@[m # 2. Redistributions in binary form must reproduce the above copyright notice,[m # this list of conditions and the following disclaimer in the documentation[m # and/or other materials provided with the distribution.[m [31m-# [m [32m+[m[32m#[m # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"[m # AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE[m # IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE[m [36m@@ -55,7 +55,7 @@[m [mprint(json.dumps(CONFIG, indent=2))[m [m def report_error(stream, code, msg):[m stream.sendall(f'{code} {msg}\r\n'.encode('utf-8'))[m [31m- [m [32m+[m def run_command(args):[m try:[m out = subprocess.check_output(args).decode('utf-8').strip()[m [36m@@ -67,14 +67,14 @@[m [mdef run_command(args):[m if len(out):[m return '```\n' + out + '\n```\n'[m return ''[m [31m- [m [32m+[m def urlenc(q):[m q = q.replace(' ', '%20')[m q = q.replace(':', '%3A')[m q = q.replace('/', '%2F')[m [31m- return q [m [32m+[m[32m return q[m [m [31m-def handle_client(stream): [m [32m+[m[32mdef handle_client(stream):[m data = bytes()[m incoming = stream.recv(1024)[m #der = stream.getpeercert(binary_form=True)[m [36m@@ -186,7 +186,9 @@[m [mwhile True:[m import traceback[m traceback.print_exc()[m print('\n-=-=- We have a problem -=-=-\n')[m [31m- print(ex) [m [32m+[m[32m print(ex)[m [32m+[m[32m if stream:[m [32m+[m[32m report_error(stream, 42, str(ex))[m finally:[m if stream:[m stream.shutdown(socket.SHUT_RDWR)[m
text/gemini; charset=utf-8
This content has been proxied by September (3851b).