Unify internal HTTP GET/HEAD methods
commit9ae7c33f4465d3d44b5ae31d9f454f89e5748fb3
authorEric Wong <normalperson@yhbt.net>
Wed, 25 Mar 2009 02:43:48 +0000 (24 19:43 -0700)
committerEric Wong <normalperson@yhbt.net>
Wed, 25 Mar 2009 02:54:03 +0000 (24 19:54 -0700)
treebd790472906a5125896c888f5129551bb3bab26c
parentc07be896889f13235bda1bd32983261e73513a70
Unify internal HTTP GET/HEAD methods

This takes advantage of the (ugly) new mogilefs_size Socket
attribute to avoid duplicating Content-Length parsing code.

I really wish Net::HTTP in Ruby was actually usable...
lib/mogilefs/bigfile.rb
lib/mogilefs/mogilefs.rb