Fossil SCM
Make the --nossl and --nocompress server options available for CGI requests.
Commit
391526232e91d650fb952fc3ad610c713f5a2fb68a6a38c457b2fd93c6235c55
Parent
de184889a7ddda2…
2 files changed
+20
+20
+20
| --- src/main.c | ||
| +++ src/main.c | ||
| @@ -2257,10 +2257,14 @@ | ||
| 2257 | 2257 | ** showing a list of available repositories if |
| 2258 | 2258 | ** the URL is "/". |
| 2259 | 2259 | ** |
| 2260 | 2260 | ** localauth Grant administrator privileges to connections |
| 2261 | 2261 | ** from 127.0.0.1 or ::1. |
| 2262 | +** | |
| 2263 | +** nossl Signal that no SSL connections are available. | |
| 2264 | +** | |
| 2265 | +** nocompress Do not compress HTTP replies. | |
| 2262 | 2266 | ** |
| 2263 | 2267 | ** skin: LABEL Use the built-in skin called LABEL rather than |
| 2264 | 2268 | ** the default. If there are no skins called LABEL |
| 2265 | 2269 | ** then this line is a no-op. |
| 2266 | 2270 | ** |
| @@ -2378,10 +2382,26 @@ | ||
| 2378 | 2382 | ** Grant "administrator" privileges to users connecting with HTTP |
| 2379 | 2383 | ** from IP address 127.0.0.1. Do not bother checking credentials. |
| 2380 | 2384 | */ |
| 2381 | 2385 | g.useLocalauth = 1; |
| 2382 | 2386 | continue; |
| 2387 | + } | |
| 2388 | + if( blob_eq(&key, "nossl") ){ | |
| 2389 | + /* nossl | |
| 2390 | + ** | |
| 2391 | + ** Signal that no SSL connections are available. | |
| 2392 | + */ | |
| 2393 | + g.sslNotAvailable = 1; | |
| 2394 | + continue; | |
| 2395 | + } | |
| 2396 | + if( blob_eq(&key, "nocompress") ){ | |
| 2397 | + /* nocompress | |
| 2398 | + ** | |
| 2399 | + ** Do not compress HTTP replies. | |
| 2400 | + */ | |
| 2401 | + g.fNoHttpCompress = 1; | |
| 2402 | + continue; | |
| 2383 | 2403 | } |
| 2384 | 2404 | if( blob_eq(&key, "repolist") ){ |
| 2385 | 2405 | /* repolist |
| 2386 | 2406 | ** |
| 2387 | 2407 | ** If using "directory:" and the URL is "/" then generate a page |
| 2388 | 2408 |
| --- src/main.c | |
| +++ src/main.c | |
| @@ -2257,10 +2257,14 @@ | |
| 2257 | ** showing a list of available repositories if |
| 2258 | ** the URL is "/". |
| 2259 | ** |
| 2260 | ** localauth Grant administrator privileges to connections |
| 2261 | ** from 127.0.0.1 or ::1. |
| 2262 | ** |
| 2263 | ** skin: LABEL Use the built-in skin called LABEL rather than |
| 2264 | ** the default. If there are no skins called LABEL |
| 2265 | ** then this line is a no-op. |
| 2266 | ** |
| @@ -2378,10 +2382,26 @@ | |
| 2378 | ** Grant "administrator" privileges to users connecting with HTTP |
| 2379 | ** from IP address 127.0.0.1. Do not bother checking credentials. |
| 2380 | */ |
| 2381 | g.useLocalauth = 1; |
| 2382 | continue; |
| 2383 | } |
| 2384 | if( blob_eq(&key, "repolist") ){ |
| 2385 | /* repolist |
| 2386 | ** |
| 2387 | ** If using "directory:" and the URL is "/" then generate a page |
| 2388 |
| --- src/main.c | |
| +++ src/main.c | |
| @@ -2257,10 +2257,14 @@ | |
| 2257 | ** showing a list of available repositories if |
| 2258 | ** the URL is "/". |
| 2259 | ** |
| 2260 | ** localauth Grant administrator privileges to connections |
| 2261 | ** from 127.0.0.1 or ::1. |
| 2262 | ** |
| 2263 | ** nossl Signal that no SSL connections are available. |
| 2264 | ** |
| 2265 | ** nocompress Do not compress HTTP replies. |
| 2266 | ** |
| 2267 | ** skin: LABEL Use the built-in skin called LABEL rather than |
| 2268 | ** the default. If there are no skins called LABEL |
| 2269 | ** then this line is a no-op. |
| 2270 | ** |
| @@ -2378,10 +2382,26 @@ | |
| 2382 | ** Grant "administrator" privileges to users connecting with HTTP |
| 2383 | ** from IP address 127.0.0.1. Do not bother checking credentials. |
| 2384 | */ |
| 2385 | g.useLocalauth = 1; |
| 2386 | continue; |
| 2387 | } |
| 2388 | if( blob_eq(&key, "nossl") ){ |
| 2389 | /* nossl |
| 2390 | ** |
| 2391 | ** Signal that no SSL connections are available. |
| 2392 | */ |
| 2393 | g.sslNotAvailable = 1; |
| 2394 | continue; |
| 2395 | } |
| 2396 | if( blob_eq(&key, "nocompress") ){ |
| 2397 | /* nocompress |
| 2398 | ** |
| 2399 | ** Do not compress HTTP replies. |
| 2400 | */ |
| 2401 | g.fNoHttpCompress = 1; |
| 2402 | continue; |
| 2403 | } |
| 2404 | if( blob_eq(&key, "repolist") ){ |
| 2405 | /* repolist |
| 2406 | ** |
| 2407 | ** If using "directory:" and the URL is "/" then generate a page |
| 2408 |
+20
| --- src/main.c | ||
| +++ src/main.c | ||
| @@ -2257,10 +2257,14 @@ | ||
| 2257 | 2257 | ** showing a list of available repositories if |
| 2258 | 2258 | ** the URL is "/". |
| 2259 | 2259 | ** |
| 2260 | 2260 | ** localauth Grant administrator privileges to connections |
| 2261 | 2261 | ** from 127.0.0.1 or ::1. |
| 2262 | +** | |
| 2263 | +** nossl Signal that no SSL connections are available. | |
| 2264 | +** | |
| 2265 | +** nocompress Do not compress HTTP replies. | |
| 2262 | 2266 | ** |
| 2263 | 2267 | ** skin: LABEL Use the built-in skin called LABEL rather than |
| 2264 | 2268 | ** the default. If there are no skins called LABEL |
| 2265 | 2269 | ** then this line is a no-op. |
| 2266 | 2270 | ** |
| @@ -2378,10 +2382,26 @@ | ||
| 2378 | 2382 | ** Grant "administrator" privileges to users connecting with HTTP |
| 2379 | 2383 | ** from IP address 127.0.0.1. Do not bother checking credentials. |
| 2380 | 2384 | */ |
| 2381 | 2385 | g.useLocalauth = 1; |
| 2382 | 2386 | continue; |
| 2387 | + } | |
| 2388 | + if( blob_eq(&key, "nossl") ){ | |
| 2389 | + /* nossl | |
| 2390 | + ** | |
| 2391 | + ** Signal that no SSL connections are available. | |
| 2392 | + */ | |
| 2393 | + g.sslNotAvailable = 1; | |
| 2394 | + continue; | |
| 2395 | + } | |
| 2396 | + if( blob_eq(&key, "nocompress") ){ | |
| 2397 | + /* nocompress | |
| 2398 | + ** | |
| 2399 | + ** Do not compress HTTP replies. | |
| 2400 | + */ | |
| 2401 | + g.fNoHttpCompress = 1; | |
| 2402 | + continue; | |
| 2383 | 2403 | } |
| 2384 | 2404 | if( blob_eq(&key, "repolist") ){ |
| 2385 | 2405 | /* repolist |
| 2386 | 2406 | ** |
| 2387 | 2407 | ** If using "directory:" and the URL is "/" then generate a page |
| 2388 | 2408 |
| --- src/main.c | |
| +++ src/main.c | |
| @@ -2257,10 +2257,14 @@ | |
| 2257 | ** showing a list of available repositories if |
| 2258 | ** the URL is "/". |
| 2259 | ** |
| 2260 | ** localauth Grant administrator privileges to connections |
| 2261 | ** from 127.0.0.1 or ::1. |
| 2262 | ** |
| 2263 | ** skin: LABEL Use the built-in skin called LABEL rather than |
| 2264 | ** the default. If there are no skins called LABEL |
| 2265 | ** then this line is a no-op. |
| 2266 | ** |
| @@ -2378,10 +2382,26 @@ | |
| 2378 | ** Grant "administrator" privileges to users connecting with HTTP |
| 2379 | ** from IP address 127.0.0.1. Do not bother checking credentials. |
| 2380 | */ |
| 2381 | g.useLocalauth = 1; |
| 2382 | continue; |
| 2383 | } |
| 2384 | if( blob_eq(&key, "repolist") ){ |
| 2385 | /* repolist |
| 2386 | ** |
| 2387 | ** If using "directory:" and the URL is "/" then generate a page |
| 2388 |
| --- src/main.c | |
| +++ src/main.c | |
| @@ -2257,10 +2257,14 @@ | |
| 2257 | ** showing a list of available repositories if |
| 2258 | ** the URL is "/". |
| 2259 | ** |
| 2260 | ** localauth Grant administrator privileges to connections |
| 2261 | ** from 127.0.0.1 or ::1. |
| 2262 | ** |
| 2263 | ** nossl Signal that no SSL connections are available. |
| 2264 | ** |
| 2265 | ** nocompress Do not compress HTTP replies. |
| 2266 | ** |
| 2267 | ** skin: LABEL Use the built-in skin called LABEL rather than |
| 2268 | ** the default. If there are no skins called LABEL |
| 2269 | ** then this line is a no-op. |
| 2270 | ** |
| @@ -2378,10 +2382,26 @@ | |
| 2382 | ** Grant "administrator" privileges to users connecting with HTTP |
| 2383 | ** from IP address 127.0.0.1. Do not bother checking credentials. |
| 2384 | */ |
| 2385 | g.useLocalauth = 1; |
| 2386 | continue; |
| 2387 | } |
| 2388 | if( blob_eq(&key, "nossl") ){ |
| 2389 | /* nossl |
| 2390 | ** |
| 2391 | ** Signal that no SSL connections are available. |
| 2392 | */ |
| 2393 | g.sslNotAvailable = 1; |
| 2394 | continue; |
| 2395 | } |
| 2396 | if( blob_eq(&key, "nocompress") ){ |
| 2397 | /* nocompress |
| 2398 | ** |
| 2399 | ** Do not compress HTTP replies. |
| 2400 | */ |
| 2401 | g.fNoHttpCompress = 1; |
| 2402 | continue; |
| 2403 | } |
| 2404 | if( blob_eq(&key, "repolist") ){ |
| 2405 | /* repolist |
| 2406 | ** |
| 2407 | ** If using "directory:" and the URL is "/" then generate a page |
| 2408 |