Check-in [12dbaebec2]
Not logged in

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Use a little more precaution that the Fossil command has been seen first.
Timelines: family | ancestors | descendants | both | ssh-test-http
Files: files | file ages | folders
SHA1:12dbaebec2b688cd4269432210d8376ddc62e2ef
User & Date: andybradford 2013-08-18 01:26:50
Context
2013-08-19
14:48
We can detect when to enable compatibility mode, so do this instead of requiring an explicit argument. Leaf check-in: 90c4859315 user: andybradford tags: ssh-test-http
2013-08-18
01:26
Use a little more precaution that the Fossil command has been seen first. check-in: 12dbaebec2 user: andybradford tags: ssh-test-http
2013-08-17
23:05
Change SSH transport to use a single SSH connection if client/server willing. Add client header so server can detect when to use new mode. Also improve backwards compatibility for older SSH clients by responding to probes. check-in: f0bb3c9b5a user: andybradford tags: ssh-test-http
Changes

Changes to src/cgi.c.

1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
      malformed_request("missing HTTP header");
    }
    cgi_trace(zLine);
    zToken = extract_token(zLine, &z);
    if( zToken==0 ){
      malformed_request("malformed HTTP header");
    }
  }else if( zToken && strlen(zToken)==0 ){
    /* transport_flip request and continued transport_open */
    cgi_handle_ssh_transport(zCmd);
    if( fgets(zLine, sizeof(zLine),g.httpIn)==0 ){
      malformed_request("missing HTTP header");
    }
    cgi_trace(zLine);
    zToken = extract_token(zLine, &z);







|







1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
      malformed_request("missing HTTP header");
    }
    cgi_trace(zLine);
    zToken = extract_token(zLine, &z);
    if( zToken==0 ){
      malformed_request("malformed HTTP header");
    }
  }else if( zToken && strlen(zToken)==0 && zCmd ){
    /* transport_flip request and continued transport_open */
    cgi_handle_ssh_transport(zCmd);
    if( fgets(zLine, sizeof(zLine),g.httpIn)==0 ){
      malformed_request("missing HTTP header");
    }
    cgi_trace(zLine);
    zToken = extract_token(zLine, &z);