Fossil SCM

Have the test-httpmsg command try to open the repository database in case that repository database contains TLS certificate exceptions.

drh 2019-08-07 19:10 trunk
Commit bf25835f6bc9b6af46aa5547959f38520bd8e70dc4b1d8189c94e691582d6c67
1 file changed +1
+1
--- src/http.c
+++ src/http.c
@@ -495,10 +495,11 @@
495495
496496
zMimetype = find_option("mimetype",0,1);
497497
zOutFile = find_option("out","o",1);
498498
if( find_option("verbose","v",0)!=0 ) mHttpFlags |= HTTP_VERBOSE;
499499
if( find_option("compress",0,0)!=0 ) mHttpFlags &= ~HTTP_NOCOMPRESS;
500
+ db_find_and_open_repository(OPEN_OK_NOT_FOUND|OPEN_ANY_SCHEMA, 0);
500501
if( g.argc!=3 && g.argc!=4 ){
501502
usage("URL ?PAYLOAD?");
502503
}
503504
zInFile = g.argc==4 ? g.argv[3] : 0;
504505
url_parse(g.argv[2], 0);
505506
--- src/http.c
+++ src/http.c
@@ -495,10 +495,11 @@
495
496 zMimetype = find_option("mimetype",0,1);
497 zOutFile = find_option("out","o",1);
498 if( find_option("verbose","v",0)!=0 ) mHttpFlags |= HTTP_VERBOSE;
499 if( find_option("compress",0,0)!=0 ) mHttpFlags &= ~HTTP_NOCOMPRESS;
 
500 if( g.argc!=3 && g.argc!=4 ){
501 usage("URL ?PAYLOAD?");
502 }
503 zInFile = g.argc==4 ? g.argv[3] : 0;
504 url_parse(g.argv[2], 0);
505
--- src/http.c
+++ src/http.c
@@ -495,10 +495,11 @@
495
496 zMimetype = find_option("mimetype",0,1);
497 zOutFile = find_option("out","o",1);
498 if( find_option("verbose","v",0)!=0 ) mHttpFlags |= HTTP_VERBOSE;
499 if( find_option("compress",0,0)!=0 ) mHttpFlags &= ~HTTP_NOCOMPRESS;
500 db_find_and_open_repository(OPEN_OK_NOT_FOUND|OPEN_ANY_SCHEMA, 0);
501 if( g.argc!=3 && g.argc!=4 ){
502 usage("URL ?PAYLOAD?");
503 }
504 zInFile = g.argc==4 ? g.argv[3] : 0;
505 url_parse(g.argv[2], 0);
506

Keyboard Shortcuts

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