diff --git a/httpsend.pas b/httpsend.pas index 695a00a..d44831e 100644 --- a/httpsend.pas +++ b/httpsend.pas @@ -1,9 +1,9 @@ {==============================================================================| -| Project : Ararat Synapse | 003.012.008 | +| Project : Ararat Synapse | 003.012.009 | |==============================================================================| | Content: HTTP client | |==============================================================================| -| Copyright (c)1999-2012, Lukas Gebauer | +| Copyright (c)1999-2015, Lukas Gebauer | | All rights reserved. | | | | Redistribution and use in source and binary forms, with or without | @@ -33,7 +33,7 @@ | DAMAGE. | |==============================================================================| | The Initial Developer of the Original Code is Lukas Gebauer (Czech Republic).| -| Portions created by Lukas Gebauer are Copyright (c) 1999-2012. | +| Portions created by Lukas Gebauer are Copyright (c) 1999-2015. | | All Rights Reserved. | |==============================================================================| | Contributor(s): | @@ -650,7 +650,12 @@ begin Result := FSock.LastError = 0; if not Result then + begin + FSock.CloseSocket; + FAliveHost := ''; + FAlivePort := ''; Exit; + end; {if need receive response body, read it} Receiving := Method <> 'HEAD';