Author: titmuss
Date: Wed Jan 16 09:52:25 2008
New Revision: 1466
URL: http://svn.slimdevices.com?rev=1466&root=Jive&view=rev
Log:
Bug: N/A
Description:
Always use the Content-Length is possible, don't assume the server will close
the
connection when it say's it will.
Modified:
trunk/jive/src/pkg/jive/share/jive/net/SocketHttp.lua
Modified: trunk/jive/src/pkg/jive/share/jive/net/SocketHttp.lua
URL:
http://svn.slimdevices.com/trunk/jive/src/pkg/jive/share/jive/net/SocketHttp.lua?rev=1466&root=Jive&r1=1465&r2=1466&view=diff
==============================================================================
--- trunk/jive/src/pkg/jive/share/jive/net/SocketHttp.lua (original)
+++ trunk/jive/src/pkg/jive/share/jive/net/SocketHttp.lua Wed Jan 16 09:52:25
2008
@@ -688,15 +688,12 @@
else
- if self.t_httpReceiving:t_getResponseHeader("Content-Length")
and
- self.t_httpReceiving:t_getResponseHeader("Connection")
!= 'close' then
-
+ if self.t_httpReceiving:t_getResponseHeader("Content-Length")
-- if we have a length, use it!
len =
tonumber(self.t_httpReceiving:t_getResponseHeader("Content-Length"))
mode = 'jive-by-length'
else
-
-- by default we close and we start from scratch for
the next request
mode = 'jive-until-closed'
end
_______________________________________________
Jive-checkins mailing list
[email protected]
http://lists.slimdevices.com/cgi-bin/mailman/listinfo/jive-checkins