Fossil SCM

Fix several minor typos in HTTP error messages and HTTP test commands. Remove the unavailable --debug option from the test-http command help screen.

florian 2025-05-26 14:12 trunk
Commit 9cabc138da779de36c33f0fdf7842f892f7bad94db63ab4116fdf92ab0e15965
3 files changed +1 -1 +1 -1 +1 -1
+1 -1
--- src/cgi.c
+++ src/cgi.c
@@ -2138,11 +2138,11 @@
21382138
}
21392139
if( fossil_strcmp(zToken,"GET")!=0
21402140
&& fossil_strcmp(zToken,"POST")!=0
21412141
&& fossil_strcmp(zToken,"HEAD")!=0
21422142
){
2143
- malformed_request("unsupported HTTP method: \"%s\" - Fossil only supports"
2143
+ malformed_request("unsupported HTTP method: \"%s\" - Fossil only supports "
21442144
"GET, POST, and HEAD", zToken);
21452145
}
21462146
cgi_setenv("GATEWAY_INTERFACE","CGI/1.0");
21472147
cgi_setenv("REQUEST_METHOD",zToken);
21482148
zToken = extract_token(z, &z);
21492149
--- src/cgi.c
+++ src/cgi.c
@@ -2138,11 +2138,11 @@
2138 }
2139 if( fossil_strcmp(zToken,"GET")!=0
2140 && fossil_strcmp(zToken,"POST")!=0
2141 && fossil_strcmp(zToken,"HEAD")!=0
2142 ){
2143 malformed_request("unsupported HTTP method: \"%s\" - Fossil only supports"
2144 "GET, POST, and HEAD", zToken);
2145 }
2146 cgi_setenv("GATEWAY_INTERFACE","CGI/1.0");
2147 cgi_setenv("REQUEST_METHOD",zToken);
2148 zToken = extract_token(z, &z);
2149
--- src/cgi.c
+++ src/cgi.c
@@ -2138,11 +2138,11 @@
2138 }
2139 if( fossil_strcmp(zToken,"GET")!=0
2140 && fossil_strcmp(zToken,"POST")!=0
2141 && fossil_strcmp(zToken,"HEAD")!=0
2142 ){
2143 malformed_request("unsupported HTTP method: \"%s\" - Fossil only supports "
2144 "GET, POST, and HEAD", zToken);
2145 }
2146 cgi_setenv("GATEWAY_INTERFACE","CGI/1.0");
2147 cgi_setenv("REQUEST_METHOD",zToken);
2148 zToken = extract_token(z, &z);
2149
+1 -1
--- src/http.c
+++ src/http.c
@@ -765,11 +765,11 @@
765765
** COMMAND: test-httpmsg
766766
**
767767
** Usage: %fossil test-httpmsg ?OPTIONS? URL ?PAYLOAD? ?OUTPUT?
768768
**
769769
** Send an HTTP message to URL and get the reply. PAYLOAD is a file containing
770
-** the payload, or "-" to read payload from standard input. a POST message
770
+** the payload, or "-" to read payload from standard input. A POST message
771771
** is sent if PAYLOAD is specified and is non-empty. If PAYLOAD is omitted
772772
** or is an empty file, then a GET message is sent.
773773
**
774774
** If a second filename (OUTPUT) is given after PAYLOAD, then the reply
775775
** is written into that second file instead of being written on standard
776776
--- src/http.c
+++ src/http.c
@@ -765,11 +765,11 @@
765 ** COMMAND: test-httpmsg
766 **
767 ** Usage: %fossil test-httpmsg ?OPTIONS? URL ?PAYLOAD? ?OUTPUT?
768 **
769 ** Send an HTTP message to URL and get the reply. PAYLOAD is a file containing
770 ** the payload, or "-" to read payload from standard input. a POST message
771 ** is sent if PAYLOAD is specified and is non-empty. If PAYLOAD is omitted
772 ** or is an empty file, then a GET message is sent.
773 **
774 ** If a second filename (OUTPUT) is given after PAYLOAD, then the reply
775 ** is written into that second file instead of being written on standard
776
--- src/http.c
+++ src/http.c
@@ -765,11 +765,11 @@
765 ** COMMAND: test-httpmsg
766 **
767 ** Usage: %fossil test-httpmsg ?OPTIONS? URL ?PAYLOAD? ?OUTPUT?
768 **
769 ** Send an HTTP message to URL and get the reply. PAYLOAD is a file containing
770 ** the payload, or "-" to read payload from standard input. A POST message
771 ** is sent if PAYLOAD is specified and is non-empty. If PAYLOAD is omitted
772 ** or is an empty file, then a GET message is sent.
773 **
774 ** If a second filename (OUTPUT) is given after PAYLOAD, then the reply
775 ** is written into that second file instead of being written on standard
776
+1 -1
--- src/main.c
+++ src/main.c
@@ -3064,11 +3064,11 @@
30643064
**
30653065
** echo 'GET /timeline' >request.txt
30663066
**
30673067
** Then run (in a debugger) a command like this:
30683068
**
3069
-** fossil test-http --debug <request.txt
3069
+** fossil test-http <request.txt
30703070
**
30713071
** This command is also used internally by the "ssh" sync protocol. Some
30723072
** special processing to support sync happens when this command is run
30733073
** and the SSH_CONNECTION environment variable is set. Use the --test
30743074
** option on interactive sessions to avoid that special processing when
30753075
--- src/main.c
+++ src/main.c
@@ -3064,11 +3064,11 @@
3064 **
3065 ** echo 'GET /timeline' >request.txt
3066 **
3067 ** Then run (in a debugger) a command like this:
3068 **
3069 ** fossil test-http --debug <request.txt
3070 **
3071 ** This command is also used internally by the "ssh" sync protocol. Some
3072 ** special processing to support sync happens when this command is run
3073 ** and the SSH_CONNECTION environment variable is set. Use the --test
3074 ** option on interactive sessions to avoid that special processing when
3075
--- src/main.c
+++ src/main.c
@@ -3064,11 +3064,11 @@
3064 **
3065 ** echo 'GET /timeline' >request.txt
3066 **
3067 ** Then run (in a debugger) a command like this:
3068 **
3069 ** fossil test-http <request.txt
3070 **
3071 ** This command is also used internally by the "ssh" sync protocol. Some
3072 ** special processing to support sync happens when this command is run
3073 ** and the SSH_CONNECTION environment variable is set. Use the --test
3074 ** option on interactive sessions to avoid that special processing when
3075

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button