[fpc-pascal] fpwebfile, indexPageName and query -> 404
    Luca Olivetti 
    luca at ventoso.org
       
    Tue Sep 13 15:14:35 CEST 2022
    
    
  
Hello,
if I request, e.g.
http://localhost:8080 or http://localhost:8080/
fpwebfile returns the document defined as IndexPageName (in my case 
index.html), but if I request
http://localhost:8080?xxx or http://localhost:8080/?xxx
I get a 404.
That's because TCustomFileModule.GetRequestFIleName with an empty 
PathInfo uses the URI and thinks that the filename is ?xxx.
Maybe the
if (Result='') then
   Result:=ARequest.URI;
should be eliminated?
Bye
-- 
Luca
    
    
More information about the fpc-pascal
mailing list