Skip to content

Commit

Permalink
Fixed the TBrookHTTPResponse.SendEmpty() method not to destroy the he…
Browse files Browse the repository at this point in the history
…aders.
  • Loading branch information
silvioprog committed Jan 28, 2021
1 parent 3e4573b commit 0985709
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions Package/BrookTardigrade.dproj
Original file line number Diff line number Diff line change
Expand Up @@ -88,9 +88,9 @@
<PropertyGroup Condition="'$(Cfg_1_Win32)'!=''">
<DCC_RemoteDebug>false</DCC_RemoteDebug>
<VerInfo_IncludeVerInfo>true</VerInfo_IncludeVerInfo>
<VerInfo_Keys>CompanyName=;FileDescription=$(MSBuildProjectName);FileVersion=5.4.1.0;InternalName=;LegalCopyright=;LegalTrademarks=;OriginalFilename=;ProgramID=com.embarcadero.$(MSBuildProjectName);ProductName=$(MSBuildProjectName);ProductVersion=5.4.0.0;Comments=</VerInfo_Keys>
<VerInfo_Keys>CompanyName=;FileDescription=$(MSBuildProjectName);FileVersion=5.4.2.0;InternalName=;LegalCopyright=;LegalTrademarks=;OriginalFilename=;ProgramID=com.embarcadero.$(MSBuildProjectName);ProductName=$(MSBuildProjectName);ProductVersion=5.4.2.0;Comments=</VerInfo_Keys>
<VerInfo_MinorVer>4</VerInfo_MinorVer>
<VerInfo_Release>1</VerInfo_Release>
<VerInfo_Release>2</VerInfo_Release>
</PropertyGroup>
<PropertyGroup Condition="'$(Cfg_2)'!=''">
<DCC_LocalDebugSymbols>false</DCC_LocalDebugSymbols>
Expand Down
2 changes: 1 addition & 1 deletion Package/BrookTardigrade.lpk
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public
License along with Brook framework; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA"/>
<Version Major="5" Minor="4" Release="1"/>
<Version Major="5" Minor="4" Release="2"/>
<Files Count="23">
<Item1>
<Filename Value="../Source/BrookDefines.inc"/>
Expand Down
4 changes: 2 additions & 2 deletions Source/BrookHTTPResponse.pas
Original file line number Diff line number Diff line change
Expand Up @@ -408,13 +408,13 @@ procedure TBrookHTTPResponse.SendStream(AStream: TStream; AStatus: Word);

procedure TBrookHTTPResponse.SendEmpty(const AContentType: string);
begin
Clear;
Reset;
Send('', AContentType, 204);
end;

procedure TBrookHTTPResponse.SendEmpty;
begin
Clear;
Reset;
Send('', '', 204);
end;

Expand Down

0 comments on commit 0985709

Please sign in to comment.