I notice that your Puppet based code no longer bothers to set this flag, while your Net::HTTP code does.  Isn't that a behavioural change?  If not, you should probably note that somewhere.