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.
Commit
9cabc138da779de36c33f0fdf7842f892f7bad94db63ab4116fdf92ab0e15965
Parent
174091aa6fa5ed4…
3 files changed
+1
-1
+1
-1
+1
-1
+1
-1
| --- src/cgi.c | ||
| +++ src/cgi.c | ||
| @@ -2138,11 +2138,11 @@ | ||
| 2138 | 2138 | } |
| 2139 | 2139 | if( fossil_strcmp(zToken,"GET")!=0 |
| 2140 | 2140 | && fossil_strcmp(zToken,"POST")!=0 |
| 2141 | 2141 | && fossil_strcmp(zToken,"HEAD")!=0 |
| 2142 | 2142 | ){ |
| 2143 | - malformed_request("unsupported HTTP method: \"%s\" - Fossil only supports" | |
| 2143 | + malformed_request("unsupported HTTP method: \"%s\" - Fossil only supports " | |
| 2144 | 2144 | "GET, POST, and HEAD", zToken); |
| 2145 | 2145 | } |
| 2146 | 2146 | cgi_setenv("GATEWAY_INTERFACE","CGI/1.0"); |
| 2147 | 2147 | cgi_setenv("REQUEST_METHOD",zToken); |
| 2148 | 2148 | zToken = extract_token(z, &z); |
| 2149 | 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 |
| --- 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 @@ | ||
| 765 | 765 | ** COMMAND: test-httpmsg |
| 766 | 766 | ** |
| 767 | 767 | ** Usage: %fossil test-httpmsg ?OPTIONS? URL ?PAYLOAD? ?OUTPUT? |
| 768 | 768 | ** |
| 769 | 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 | |
| 770 | +** the payload, or "-" to read payload from standard input. A POST message | |
| 771 | 771 | ** is sent if PAYLOAD is specified and is non-empty. If PAYLOAD is omitted |
| 772 | 772 | ** or is an empty file, then a GET message is sent. |
| 773 | 773 | ** |
| 774 | 774 | ** If a second filename (OUTPUT) is given after PAYLOAD, then the reply |
| 775 | 775 | ** is written into that second file instead of being written on standard |
| 776 | 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 |
| --- 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 @@ | ||
| 3064 | 3064 | ** |
| 3065 | 3065 | ** echo 'GET /timeline' >request.txt |
| 3066 | 3066 | ** |
| 3067 | 3067 | ** Then run (in a debugger) a command like this: |
| 3068 | 3068 | ** |
| 3069 | -** fossil test-http --debug <request.txt | |
| 3069 | +** fossil test-http <request.txt | |
| 3070 | 3070 | ** |
| 3071 | 3071 | ** This command is also used internally by the "ssh" sync protocol. Some |
| 3072 | 3072 | ** special processing to support sync happens when this command is run |
| 3073 | 3073 | ** and the SSH_CONNECTION environment variable is set. Use the --test |
| 3074 | 3074 | ** option on interactive sessions to avoid that special processing when |
| 3075 | 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 --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 |