-- Leo's gemini proxy
-- Connecting to git.thebackupbox.net:1965...
-- Connected
-- Sending request
-- Meta line: 20 text/gemini
repo: gemini-site action: commit revision: path_from: revision_from: c3992339ddb13690347a64f1dab4646fc0c42a16: path_to: revision_to:
commit c3992339ddb13690347a64f1dab4646fc0c42a16 Author: Solderpunk <solderpunk@sdf.org> Date: Thu May 21 15:36:29 2020 +0000 Make sure response headers have a finite length. diff --git a/docs/spec-spec.txt b/docs/spec-spec.txt
--- a/docs/spec-spec.txt +++ b/docs/spec-spec.txt @@ -79,23 +79,24 @@ optionally followed by a response body. Gemini response headers look like this: -<STATUS><whitespace><META><CR><LF> +<STATUS> <META><CR><LF> <STATUS> is a two-digit numeric status code, as described below in 1.3.2 and in Appendix 1. -<whitespace> is any non-zero number of consecutive spaces or tabs. +<META> is a UTF-8 encoded string of maximum length 1024 bytes, whose +meaning is <STATUS> dependent. -<META> is a UTF-8 encoded string of maximum length 1024, whose meaning -is <STATUS> dependent. +<STATUS> and <META> are separated by a single space character. If <STATUS> does not belong to the "SUCCESS" range of codes, then the server MUST close the connection after sending the header and MUST NOT send a response body. If a server sends a <STATUS> which is not a two-digit number or a -<META> which exceeds 1024, the client SHOULD close the connection and -disregard the response header, informing the user of an error. +<META> which exceeds 1024 bytes in length, the client SHOULD close the +connection and disregard the response header, informing the user of an +error. 1.3.2 Status codes
-----END OF PAGE-----
-- Response ended
-- Page fetched on Sun Jun 2 14:50:57 2024