Fossil SCM

Make the --nossl and --nocompress server options available for CGI requests.

florian 2019-02-24 16:45 trunk
Commit a41ef5e6a232e524a5e3a697f3cc480a9e24695eb6d67bbb57b64032f6d7efbd
1 file changed +20
+20
--- src/main.c
+++ src/main.c
@@ -1904,10 +1904,14 @@
19041904
** showing a list of available repositories if
19051905
** the URL is "/".
19061906
**
19071907
** localauth Grant administrator privileges to connections
19081908
** 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.
19091913
**
19101914
** skin: LABEL Use the built-in skin called LABEL rather than
19111915
** the default. If there are no skins called LABEL
19121916
** then this line is a no-op.
19131917
**
@@ -2001,10 +2005,26 @@
20012005
** Grant "administrator" privileges to users connecting with HTTP
20022006
** from IP address 127.0.0.1. Do not bother checking credentials.
20032007
*/
20042008
g.useLocalauth = 1;
20052009
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;
20062026
}
20072027
if( blob_eq(&key, "repolist") ){
20082028
/* repolist
20092029
**
20102030
** If using "directory:" and the URL is "/" then generate a page
20112031
--- 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

Keyboard Shortcuts

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