Check that sync.server.origin is a URL (#3361)

This commit is contained in:
Dustin J. Mitchell
2024-04-15 22:11:55 -04:00
committed by GitHub
parent 4d9bb20bdd
commit 10cec507cb
6 changed files with 18 additions and 3 deletions

View File

@@ -186,7 +186,7 @@ static void test_replica_sync_local(void) {
static void test_replica_remote_server(void) {
TCString err;
TCServer *server = tc_server_new_sync(
tc_string_borrow("tc.freecinc.com"),
tc_string_borrow("http://tc.freecinc.com"),
tc_uuid_new_v4(),
tc_string_borrow("\xf0\x28\x8c\x28"), // NOTE: not utf-8
&err);