diff options
author | UbitUmarov | 2017-05-08 00:54:17 +0100 |
---|---|---|
committer | UbitUmarov | 2017-05-08 00:54:17 +0100 |
commit | 6c79cc652ba481f714ccd728fe1f062fbd69bb83 (patch) | |
tree | 7682c9713f73b679d1ca142fe51b3be1594acf75 /OpenSim/Framework/Servers/HttpServer/BaseHttpServer.cs | |
parent | fix merge (diff) | |
download | opensim-SC-6c79cc652ba481f714ccd728fe1f062fbd69bb83.zip opensim-SC-6c79cc652ba481f714ccd728fe1f062fbd69bb83.tar.gz opensim-SC-6c79cc652ba481f714ccd728fe1f062fbd69bb83.tar.bz2 opensim-SC-6c79cc652ba481f714ccd728fe1f062fbd69bb83.tar.xz |
some conditional dispose on http requests inputstream
Diffstat (limited to 'OpenSim/Framework/Servers/HttpServer/BaseHttpServer.cs')
-rw-r--r-- | OpenSim/Framework/Servers/HttpServer/BaseHttpServer.cs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/OpenSim/Framework/Servers/HttpServer/BaseHttpServer.cs b/OpenSim/Framework/Servers/HttpServer/BaseHttpServer.cs index ec3805f..da2b860 100644 --- a/OpenSim/Framework/Servers/HttpServer/BaseHttpServer.cs +++ b/OpenSim/Framework/Servers/HttpServer/BaseHttpServer.cs | |||
@@ -815,7 +815,8 @@ namespace OpenSim.Framework.Servers.HttpServer | |||
815 | } | 815 | } |
816 | } | 816 | } |
817 | 817 | ||
818 | request.InputStream.Dispose(); | 818 | if(request.InputStream.CanRead) |
819 | request.InputStream.Dispose(); | ||
819 | 820 | ||
820 | if (buffer != null) | 821 | if (buffer != null) |
821 | { | 822 | { |