mirror of
https://github.com/danieleteti/delphimvcframework.git
synced 2024-11-15 15:55:54 +01:00
This commit is contained in:
parent
3ca42d0582
commit
90fe2d5f5b
@ -12,6 +12,7 @@ type
|
||||
public
|
||||
[MVCHTTPMethod([httpGet])]
|
||||
[MVCPath('/customers/($id).html')]
|
||||
{ this route require a request header ACCEPT: text/html }
|
||||
[MVCConsumes('text/html')]
|
||||
[MVCProduces('text/html', 'UTF-8')]
|
||||
procedure GetPerson_AsText(CTX: TWebContext);
|
||||
|
@ -280,7 +280,7 @@ begin
|
||||
begin
|
||||
FoundOneAttribConsumes := true;
|
||||
Accept := MVCConsumesAttribute(AAttributes[i]).Value;
|
||||
if Pos(AAccept, ',') > 0 then
|
||||
if Pos(',', AAccept) > 0 then
|
||||
AAccept := Copy(AAccept, 1, Pos(',', AAccept) - 1);
|
||||
Result := SameText(AAccept, Accept, loInvariantLocale);
|
||||
end;
|
||||
|
Loading…
Reference in New Issue
Block a user