Differences From Artifact [e67bd9dcd3]:
- File src/http_transport.c — part of check-in [cb34f1a8ac] at 2021-06-30 19:14:57 on branch remote-ui — Initial changes to support HOST: prefixes on the REPOSITORY argument of the "fossil ui" command. (user: drh size: 13390) [more...]
To Artifact [c1af11f9ca]:
- File src/http_transport.c — part of check-in [31361e328f] at 2021-11-11 23:38:34 on branch trunk — Do extra error checking to determine that a sync target given as a filename is a valid Fossil repository. Issue a better error message if it is not. (user: drh size: 13528) [more...]
| ︙ | |||
176 177 178 179 180 181 182 183 184 185 186 187 188 189 | 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 | + + + |
if( rc==0 ) transport.isOpen = 1;
#else
socket_set_errmsg("HTTPS: Fossil has been compiled without SSL support");
rc = 1;
#endif
}else if( pUrlData->isFile ){
sqlite3_uint64 iRandId;
if( !db_looks_like_a_repository(pUrlData->name) ){
fossil_fatal("not a fossil repository: \"%s\"", pUrlData->name);
}
sqlite3_randomness(sizeof(iRandId), &iRandId);
transport.zOutFile = mprintf("%s-%llu-out.http",
g.zRepositoryName, iRandId);
transport.zInFile = mprintf("%s-%llu-in.http",
g.zRepositoryName, iRandId);
transport.pFile = fossil_fopen(transport.zOutFile, "wb");
if( transport.pFile==0 ){
|
| ︙ |