Browse Source

* Fix to fill in Accept HTTP header (By Mark van Ham, bug #25621)

git-svn-id: trunk@26585 -
michael 11 years ago
parent
commit
92187d7045
1 changed files with 1 additions and 1 deletions
  1. 1 1
      packages/fcl-web/src/base/httpdefs.pp

+ 1 - 1
packages/fcl-web/src/base/httpdefs.pp

@@ -883,7 +883,7 @@ end;
 Procedure THttpHeader.SetFieldValue(Index : Integer; Value : String);
 Procedure THttpHeader.SetFieldValue(Index : Integer; Value : String);
 
 
 begin
 begin
-  if (Index>1) and (Index<=NoHTTPFields) then
+  if (Index>=1) and (Index<=NoHTTPFields) then
     begin
     begin
     FFields[Index]:=Value;
     FFields[Index]:=Value;
     If (Index=11) then
     If (Index=11) then