Fossil SCM

Make sure the HTTP_SERVER_REPOLIST flag is set (if necessary) prior to calling the Win32 HTTP server. This allows the changes from check-in [a0b33ab4d4] to work as intended.

mistachkin 2015-03-02 22:46 trunk
Commit 9186bf2a4669d16269f2dde409c202fac4aeab0d
1 file changed +3 -1
+3 -1
--- src/main.c
+++ src/main.c
@@ -2411,11 +2411,10 @@
24112411
cgi_handle_http_request(0);
24122412
}
24132413
process_one_web_page(zNotFound, glob_create(zFileGlob), allowRepoList);
24142414
#else
24152415
/* Win32 implementation */
2416
- (void)allowRepoList; /* Suppress warning */
24172416
if( isUiCmd ){
24182417
zBrowser = db_get("web-browser", "start");
24192418
if( zIpAddr ){
24202419
zBrowserCmd = mprintf("%s http://%s:%%d/ &", zBrowser, zIpAddr);
24212420
}else{
@@ -2423,10 +2422,13 @@
24232422
}
24242423
if( g.repositoryOpen ) flags |= HTTP_SERVER_HAD_REPOSITORY;
24252424
if( g.localOpen ) flags |= HTTP_SERVER_HAD_CHECKOUT;
24262425
}
24272426
db_close(1);
2427
+ if( allowRepoList ){
2428
+ flags |= HTTP_SERVER_REPOLIST;
2429
+ }
24282430
if( win32_http_service(iPort, zNotFound, zFileGlob, flags) ){
24292431
win32_http_server(iPort, mxPort, zBrowserCmd,
24302432
zStopperFile, zNotFound, zFileGlob, zIpAddr, flags);
24312433
}
24322434
#endif
24332435
--- src/main.c
+++ src/main.c
@@ -2411,11 +2411,10 @@
2411 cgi_handle_http_request(0);
2412 }
2413 process_one_web_page(zNotFound, glob_create(zFileGlob), allowRepoList);
2414 #else
2415 /* Win32 implementation */
2416 (void)allowRepoList; /* Suppress warning */
2417 if( isUiCmd ){
2418 zBrowser = db_get("web-browser", "start");
2419 if( zIpAddr ){
2420 zBrowserCmd = mprintf("%s http://%s:%%d/ &", zBrowser, zIpAddr);
2421 }else{
@@ -2423,10 +2422,13 @@
2423 }
2424 if( g.repositoryOpen ) flags |= HTTP_SERVER_HAD_REPOSITORY;
2425 if( g.localOpen ) flags |= HTTP_SERVER_HAD_CHECKOUT;
2426 }
2427 db_close(1);
 
 
 
2428 if( win32_http_service(iPort, zNotFound, zFileGlob, flags) ){
2429 win32_http_server(iPort, mxPort, zBrowserCmd,
2430 zStopperFile, zNotFound, zFileGlob, zIpAddr, flags);
2431 }
2432 #endif
2433
--- src/main.c
+++ src/main.c
@@ -2411,11 +2411,10 @@
2411 cgi_handle_http_request(0);
2412 }
2413 process_one_web_page(zNotFound, glob_create(zFileGlob), allowRepoList);
2414 #else
2415 /* Win32 implementation */
 
2416 if( isUiCmd ){
2417 zBrowser = db_get("web-browser", "start");
2418 if( zIpAddr ){
2419 zBrowserCmd = mprintf("%s http://%s:%%d/ &", zBrowser, zIpAddr);
2420 }else{
@@ -2423,10 +2422,13 @@
2422 }
2423 if( g.repositoryOpen ) flags |= HTTP_SERVER_HAD_REPOSITORY;
2424 if( g.localOpen ) flags |= HTTP_SERVER_HAD_CHECKOUT;
2425 }
2426 db_close(1);
2427 if( allowRepoList ){
2428 flags |= HTTP_SERVER_REPOLIST;
2429 }
2430 if( win32_http_service(iPort, zNotFound, zFileGlob, flags) ){
2431 win32_http_server(iPort, mxPort, zBrowserCmd,
2432 zStopperFile, zNotFound, zFileGlob, zIpAddr, flags);
2433 }
2434 #endif
2435

Keyboard Shortcuts

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