Differences From Artifact [ab607c2282]:
- File src/xfer.c — part of check-in [12cc5bbf22] at 2025-07-21 19:39:13 on branch xfer-login-card — Do not allow more than one login card in the sync protocol. (user: drh size: 101832)
To Artifact [233574e36e]:
- File src/xfer.c — part of check-in [b49c9b3685] at 2025-07-21 23:45:08 on branch xfer-login-card — Move the X-Fossil-Xfer-Login header check to the correct end of the connection. It is receiving these from libfossil tests but is failing to validate them, but that may well be a bug in that brand new downstream code. (user: stephan size: 101924)
| ︙ | |||
1321 1322 1323 1324 1325 1326 1327 1328 1329 1330 1331 1332 1333 1334 | 1321 1322 1323 1324 1325 1326 1327 1328 1329 1330 1331 1332 1333 1334 1335 1336 | + + |
if( g.zLoginCard ){
/* Login card received via HTTP header X-Fossil-Xfer-Login */
blob_init(&xfer.line, g.zLoginCard, -1);
xfer.nToken = blob_tokenize(&xfer.line, xfer.aToken,
count(xfer.aToken));
if( xfer.nToken==4
&& blob_eq(&xfer.aToken[0], "login") ){
/*fprintf(stderr,"g.zLoginCard=%s nToken=%d\n", g.zLoginCard,
xfer.nToken);*/
goto handle_login_card;
}
fossil_free( g.zLoginCard );
g.zLoginCard = 0;
}
while( blob_line(xfer.pIn, &xfer.line) ){
if( blob_buffer(&xfer.line)[0]=='#' ) continue;
|
| ︙ |