mirror of
https://github.com/danieleteti/delphimvcframework.git
synced 2024-11-15 07:45:54 +01:00
This commit is contained in:
parent
56dc4ede47
commit
d750b19e55
@ -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);
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user