From 1b07b0a59450824f5f39f09a45bffde3b2e952a0 Mon Sep 17 00:00:00 2001 From: Michael Lazar Date: Sat, 20 Jun 2020 01:26:42 -0400 Subject: [PATCH] update status code names to match the spec --- CHANGELOG.md | 10 +++++++++- jetforce/app/base.py | 8 ++------ 2 files changed, 11 insertions(+), 7 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 6a4e942..83cc4e8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,11 +9,19 @@ #### Internal Framework +- The status code definitions have been updated to match the recent changes + to the gemini spec: + - 21 ``SUCCESS_END_OF_SESSION`` -> (removed) + - 61 ``TRANSIENT_CERTIFICATE_REQUESTED`` -> ``CERTIFICATE_NOT_AUTHORISED`` + - 62 ``AUTHORISED_CERTIFICATE_REQUIRED`` -> ``CERTIFICATE_NOT_VALID`` + - 63 ``CERTIFICATE_NOT_ACCEPTED`` -> (removed) + - 64 ``FUTURE_CERTIFICATE_REJECTED`` -> (removed) + - 65 ``EXPIRED_CERTIFICATE_REJECTED`` -> (removed) - If a gemini response returns a twisted.Deferred object, the errback will now be invoked when the TCP connection is closed. - Added a new example that demonstrates streaming data to client connections (examples/chatroom.py). - + ### v0.4.0 (2020-06-09) #### Features diff --git a/jetforce/app/base.py b/jetforce/app/base.py index 0929c56..a4da771 100644 --- a/jetforce/app/base.py +++ b/jetforce/app/base.py @@ -17,7 +17,6 @@ class Status: SENSITIVE_INPUT = 11 SUCCESS = 20 - SUCCESS_END_OF_SESSION = 21 REDIRECT_TEMPORARY = 30 REDIRECT_PERMANENT = 31 @@ -35,11 +34,8 @@ class Status: BAD_REQUEST = 59 CLIENT_CERTIFICATE_REQUIRED = 60 - TRANSIENT_CERTIFICATE_REQUESTED = 61 - AUTHORISED_CERTIFICATE_REQUIRED = 62 - CERTIFICATE_NOT_ACCEPTED = 63 - FUTURE_CERTIFICATE_REJECTED = 64 - EXPIRED_CERTIFICATE_REJECTED = 65 + CERTIFICATE_NOT_AUTHORISED = 61 + CERTIFICATE_NOT_VALID = 62 class Request: