Fossil SCM
Make the --nossl and --nocompress server options available for CGI requests.
Commit
a41ef5e6a232e524a5e3a697f3cc480a9e24695eb6d67bbb57b64032f6d7efbd
Parent
08e63e1755ee202…
1 file changed
+20
+20
| --- src/main.c | ||
| +++ src/main.c | ||
| @@ -1904,10 +1904,14 @@ | ||
| 1904 | 1904 | ** showing a list of available repositories if |
| 1905 | 1905 | ** the URL is "/". |
| 1906 | 1906 | ** |
| 1907 | 1907 | ** localauth Grant administrator privileges to connections |
| 1908 | 1908 | ** from 127.0.0.1 or ::1. |
| 1909 | +** | |
| 1910 | +** nossl Signal that no SSL connections are available. | |
| 1911 | +** | |
| 1912 | +** nocompress Do not compress HTTP replies. | |
| 1909 | 1913 | ** |
| 1910 | 1914 | ** skin: LABEL Use the built-in skin called LABEL rather than |
| 1911 | 1915 | ** the default. If there are no skins called LABEL |
| 1912 | 1916 | ** then this line is a no-op. |
| 1913 | 1917 | ** |
| @@ -2001,10 +2005,26 @@ | ||
| 2001 | 2005 | ** Grant "administrator" privileges to users connecting with HTTP |
| 2002 | 2006 | ** from IP address 127.0.0.1. Do not bother checking credentials. |
| 2003 | 2007 | */ |
| 2004 | 2008 | g.useLocalauth = 1; |
| 2005 | 2009 | continue; |
| 2010 | + } | |
| 2011 | + if( blob_eq(&key, "nossl") ){ | |
| 2012 | + /* nossl | |
| 2013 | + ** | |
| 2014 | + ** Signal that no SSL connections are available. | |
| 2015 | + */ | |
| 2016 | + g.sslNotAvailable = 1; | |
| 2017 | + continue; | |
| 2018 | + } | |
| 2019 | + if( blob_eq(&key, "nocompress") ){ | |
| 2020 | + /* nocompress | |
| 2021 | + ** | |
| 2022 | + ** Do not compress HTTP replies. | |
| 2023 | + */ | |
| 2024 | + g.fNoHttpCompress = 1; | |
| 2025 | + continue; | |
| 2006 | 2026 | } |
| 2007 | 2027 | if( blob_eq(&key, "repolist") ){ |
| 2008 | 2028 | /* repolist |
| 2009 | 2029 | ** |
| 2010 | 2030 | ** If using "directory:" and the URL is "/" then generate a page |
| 2011 | 2031 |
| --- src/main.c | |
| +++ src/main.c | |
| @@ -1904,10 +1904,14 @@ | |
| 1904 | ** showing a list of available repositories if |
| 1905 | ** the URL is "/". |
| 1906 | ** |
| 1907 | ** localauth Grant administrator privileges to connections |
| 1908 | ** from 127.0.0.1 or ::1. |
| 1909 | ** |
| 1910 | ** skin: LABEL Use the built-in skin called LABEL rather than |
| 1911 | ** the default. If there are no skins called LABEL |
| 1912 | ** then this line is a no-op. |
| 1913 | ** |
| @@ -2001,10 +2005,26 @@ | |
| 2001 | ** Grant "administrator" privileges to users connecting with HTTP |
| 2002 | ** from IP address 127.0.0.1. Do not bother checking credentials. |
| 2003 | */ |
| 2004 | g.useLocalauth = 1; |
| 2005 | continue; |
| 2006 | } |
| 2007 | if( blob_eq(&key, "repolist") ){ |
| 2008 | /* repolist |
| 2009 | ** |
| 2010 | ** If using "directory:" and the URL is "/" then generate a page |
| 2011 |
| --- src/main.c | |
| +++ src/main.c | |
| @@ -1904,10 +1904,14 @@ | |
| 1904 | ** showing a list of available repositories if |
| 1905 | ** the URL is "/". |
| 1906 | ** |
| 1907 | ** localauth Grant administrator privileges to connections |
| 1908 | ** from 127.0.0.1 or ::1. |
| 1909 | ** |
| 1910 | ** nossl Signal that no SSL connections are available. |
| 1911 | ** |
| 1912 | ** nocompress Do not compress HTTP replies. |
| 1913 | ** |
| 1914 | ** skin: LABEL Use the built-in skin called LABEL rather than |
| 1915 | ** the default. If there are no skins called LABEL |
| 1916 | ** then this line is a no-op. |
| 1917 | ** |
| @@ -2001,10 +2005,26 @@ | |
| 2005 | ** Grant "administrator" privileges to users connecting with HTTP |
| 2006 | ** from IP address 127.0.0.1. Do not bother checking credentials. |
| 2007 | */ |
| 2008 | g.useLocalauth = 1; |
| 2009 | continue; |
| 2010 | } |
| 2011 | if( blob_eq(&key, "nossl") ){ |
| 2012 | /* nossl |
| 2013 | ** |
| 2014 | ** Signal that no SSL connections are available. |
| 2015 | */ |
| 2016 | g.sslNotAvailable = 1; |
| 2017 | continue; |
| 2018 | } |
| 2019 | if( blob_eq(&key, "nocompress") ){ |
| 2020 | /* nocompress |
| 2021 | ** |
| 2022 | ** Do not compress HTTP replies. |
| 2023 | */ |
| 2024 | g.fNoHttpCompress = 1; |
| 2025 | continue; |
| 2026 | } |
| 2027 | if( blob_eq(&key, "repolist") ){ |
| 2028 | /* repolist |
| 2029 | ** |
| 2030 | ** If using "directory:" and the URL is "/" then generate a page |
| 2031 |