do not send Expect header as many server don't like it

This commit is contained in:
Jonne Hass 2011-11-06 07:11:55 +01:00
parent c2893a2e3d
commit 09766288b0

View file

@ -7,7 +7,10 @@ require 'active_support/base64'
class HydraWrapper
OPTS = {:max_redirects => 3, :timeout => 5000, :method => :post}
OPTS = {:max_redirects => 3, :timeout => 5000, :method => :post,
:headers => {'Expect' => '',
'Transfer-Encoding' => ''}
}
attr_reader :failed_people, :user, :encoded_object_xml
attr_accessor :dispatcher_class, :people, :hydra