Fossil SCM

Disable HTTPS redirect for the "test-http" command. That command is used by the "ssh:" transport method and redirects to https will break ssh: transport.

drh 2020-08-16 15:51 trunk
Commit ea6365a8df6ab5fe27d84ec93d67b298bfd30afa50ad07ce0ea6781fd76a2a95
1 file changed +1
+1
--- src/main.c
+++ src/main.c
@@ -2634,10 +2634,11 @@
26342634
g.zExtRoot = find_option("extroot",0,1);
26352635
find_server_repository(2, 0);
26362636
g.cgiOutput = 1;
26372637
g.fNoHttpCompress = 1;
26382638
g.fullHttpReply = 1;
2639
+ g.sslNotAvailable = 1; /* Avoid attempts to redirect */
26392640
zIpAddr = cgi_ssh_remote_addr(0);
26402641
if( zIpAddr && zIpAddr[0] ){
26412642
g.fSshClient |= CGI_SSH_CLIENT;
26422643
ssh_request_loop(zIpAddr, 0);
26432644
}else{
26442645
--- src/main.c
+++ src/main.c
@@ -2634,10 +2634,11 @@
2634 g.zExtRoot = find_option("extroot",0,1);
2635 find_server_repository(2, 0);
2636 g.cgiOutput = 1;
2637 g.fNoHttpCompress = 1;
2638 g.fullHttpReply = 1;
 
2639 zIpAddr = cgi_ssh_remote_addr(0);
2640 if( zIpAddr && zIpAddr[0] ){
2641 g.fSshClient |= CGI_SSH_CLIENT;
2642 ssh_request_loop(zIpAddr, 0);
2643 }else{
2644
--- src/main.c
+++ src/main.c
@@ -2634,10 +2634,11 @@
2634 g.zExtRoot = find_option("extroot",0,1);
2635 find_server_repository(2, 0);
2636 g.cgiOutput = 1;
2637 g.fNoHttpCompress = 1;
2638 g.fullHttpReply = 1;
2639 g.sslNotAvailable = 1; /* Avoid attempts to redirect */
2640 zIpAddr = cgi_ssh_remote_addr(0);
2641 if( zIpAddr && zIpAddr[0] ){
2642 g.fSshClient |= CGI_SSH_CLIENT;
2643 ssh_request_loop(zIpAddr, 0);
2644 }else{
2645

Keyboard Shortcuts

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