going-flying.com gemini git repository
ec994db9d9b7403947c17b685f61e752ff45b10a - Matthew Ernisse - 1598973889
header ends in \r\n
diff --git a/cgi-bin/rfc b/cgi-bin/rfc index 2c3e87a..137055a 100755 --- a/cgi-bin/rfc +++ b/cgi-bin/rfc @@ -38,19 +38,19 @@ if __name__ == "__main__": rfc = check_requested_path() body = get_rfc(rfc) except ValueError as e: - print(f'59 {str(e)}') + print(f'59 {str(e)}\r\n') sys.exit() except requests.exceptions.HTTPError as e: if e.errno == 404: - print(f'51 Not Found.') + print(f'51 Not Found.\r\n') sys.exit() elif e.errno > 399 and e.errno < 500: - print(f'43 {e.strerror}') + print(f'43 {e.strerror}\r\n') sys.exit() else: - print(f'53 {e.strerror}') + print(f'53 {e.strerror}\r\n') sys.exit() print('20 text/plain\r\n')