Fossil SCM

Fix the test-http command so that it omits line-ending conversions. This allows the ssh: clone/sync method to work with a windows server.

drh 2019-09-25 13:45 trunk
Commit 28b15b4816b9e05b365cafa7f5651761c6688ebeda9a32545b90c16e25690176
1 file changed +2
+2
--- src/main.c
+++ src/main.c
@@ -2444,10 +2444,12 @@
24442444
Th_InitTraceLog();
24452445
login_set_capabilities("sx", 0);
24462446
g.useLocalauth = 1;
24472447
g.httpIn = stdin;
24482448
g.httpOut = stdout;
2449
+ fossil_binary_mode(g.httpOut);
2450
+ fossil_binary_mode(g.httpIn);
24492451
g.zExtRoot = find_option("extroot",0,1);
24502452
find_server_repository(2, 0);
24512453
g.cgiOutput = 1;
24522454
g.fNoHttpCompress = 1;
24532455
g.fullHttpReply = 1;
24542456
--- src/main.c
+++ src/main.c
@@ -2444,10 +2444,12 @@
2444 Th_InitTraceLog();
2445 login_set_capabilities("sx", 0);
2446 g.useLocalauth = 1;
2447 g.httpIn = stdin;
2448 g.httpOut = stdout;
 
 
2449 g.zExtRoot = find_option("extroot",0,1);
2450 find_server_repository(2, 0);
2451 g.cgiOutput = 1;
2452 g.fNoHttpCompress = 1;
2453 g.fullHttpReply = 1;
2454
--- src/main.c
+++ src/main.c
@@ -2444,10 +2444,12 @@
2444 Th_InitTraceLog();
2445 login_set_capabilities("sx", 0);
2446 g.useLocalauth = 1;
2447 g.httpIn = stdin;
2448 g.httpOut = stdout;
2449 fossil_binary_mode(g.httpOut);
2450 fossil_binary_mode(g.httpIn);
2451 g.zExtRoot = find_option("extroot",0,1);
2452 find_server_repository(2, 0);
2453 g.cgiOutput = 1;
2454 g.fNoHttpCompress = 1;
2455 g.fullHttpReply = 1;
2456

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button