mirror of
https://github.com/owntone/owntone-server.git
synced 2025-11-10 22:10:15 -05:00
Patch from Stephane Moreau to make apache rewrites easier
This commit is contained in:
@@ -466,7 +466,7 @@ void config_handler(WS_CONNINFO *pwsc) {
|
||||
/* this is quite broken, but will work */
|
||||
os_stat(resolved_path,&sb);
|
||||
if(S_ISDIR(sb.st_mode)) {
|
||||
ws_addresponseheader(pwsc,"Location","/index.html");
|
||||
ws_addresponseheader(pwsc,"Location","index.html");
|
||||
ws_returnerror(pwsc,302,"Moved");
|
||||
config_set_status(pwsc,0,NULL);
|
||||
ws_should_close(pwsc,1);
|
||||
|
||||
Reference in New Issue
Block a user