Fossil SCM
Enable the HTTP login header if the xfer server-version is high enough, analog to the same check for the client-version.
Commit
bc3ad9441177e43d3ae821cd40908ae50dfc00f74166cecd2ba36daf92c1456d
Parent
042560df547a44a…
1 file changed
+2
+2
| --- src/xfer.c | ||
| +++ src/xfer.c | ||
| @@ -2816,10 +2816,12 @@ | ||
| 2816 | 2816 | ** is running. The DATE and TIME are a pure numeric ISO8601 time |
| 2817 | 2817 | ** for the specific check-in of the client. |
| 2818 | 2818 | */ |
| 2819 | 2819 | if( xfer.nToken>=3 && blob_eq(&xfer.aToken[1], "server-version") ){ |
| 2820 | 2820 | xfer.remoteVersion = atoi(blob_str(&xfer.aToken[2])); |
| 2821 | + g.syncInfo.bLoginCardHeader = | |
| 2822 | + xfer.remoteVersion>=RELEASE_VERSION_NUMBER; | |
| 2821 | 2823 | if( xfer.nToken>=5 ){ |
| 2822 | 2824 | xfer.remoteDate = atoi(blob_str(&xfer.aToken[3])); |
| 2823 | 2825 | xfer.remoteTime = atoi(blob_str(&xfer.aToken[4])); |
| 2824 | 2826 | } |
| 2825 | 2827 | } |
| 2826 | 2828 |
| --- src/xfer.c | |
| +++ src/xfer.c | |
| @@ -2816,10 +2816,12 @@ | |
| 2816 | ** is running. The DATE and TIME are a pure numeric ISO8601 time |
| 2817 | ** for the specific check-in of the client. |
| 2818 | */ |
| 2819 | if( xfer.nToken>=3 && blob_eq(&xfer.aToken[1], "server-version") ){ |
| 2820 | xfer.remoteVersion = atoi(blob_str(&xfer.aToken[2])); |
| 2821 | if( xfer.nToken>=5 ){ |
| 2822 | xfer.remoteDate = atoi(blob_str(&xfer.aToken[3])); |
| 2823 | xfer.remoteTime = atoi(blob_str(&xfer.aToken[4])); |
| 2824 | } |
| 2825 | } |
| 2826 |
| --- src/xfer.c | |
| +++ src/xfer.c | |
| @@ -2816,10 +2816,12 @@ | |
| 2816 | ** is running. The DATE and TIME are a pure numeric ISO8601 time |
| 2817 | ** for the specific check-in of the client. |
| 2818 | */ |
| 2819 | if( xfer.nToken>=3 && blob_eq(&xfer.aToken[1], "server-version") ){ |
| 2820 | xfer.remoteVersion = atoi(blob_str(&xfer.aToken[2])); |
| 2821 | g.syncInfo.bLoginCardHeader = |
| 2822 | xfer.remoteVersion>=RELEASE_VERSION_NUMBER; |
| 2823 | if( xfer.nToken>=5 ){ |
| 2824 | xfer.remoteDate = atoi(blob_str(&xfer.aToken[3])); |
| 2825 | xfer.remoteTime = atoi(blob_str(&xfer.aToken[4])); |
| 2826 | } |
| 2827 | } |
| 2828 |