Daniele Teti 2022-04-04 13:08:50 +02:00
parent 56dc4ede47
commit d750b19e55
2 changed files with 2 additions and 2 deletions

View File

@ -73,7 +73,7 @@ begin
'/static2',
TPath.Combine(ExtractFilePath(GetModuleName(HInstance)), 'www2'),
'index.html',True,'UTF-8',
procedure(const PathInfo: String; var Allow: Boolean)
procedure(var PathInfo: String; var Allow: Boolean)
begin
// This rule disallow any .txt file
Allow := not PathInfo.EndsWith('.txt', True);

View File

@ -58,7 +58,7 @@ type
STATIC_FILES_CONTENT_CHARSET = TMVCConstants.DEFAULT_CONTENT_CHARSET;
end;
TMVCStaticFileRulesProc = reference to procedure(const PathInfo: String; var Allow: Boolean);
TMVCStaticFileRulesProc = reference to procedure(var PathInfo: String; var Allow: Boolean);
TMVCStaticFilesMiddleware = class(TInterfacedObject, IMVCMiddleware)
private