lib/hyperion/headers.rb in hyperion_http-0.1.2 vs lib/hyperion/headers.rb in hyperion_http-0.1.3

- old
+ new

@@ -6,12 +6,12 @@ def route_headers(route) headers = {} rd = route.response_descriptor pd = route.payload_descriptor - headers['Expect'] = 'x' # this overrides default libcurl behavior. + headers['Expect'] = nil # this overrides default libcurl behavior. # see http://devblog.songkick.com/2012/11/27/a-second-here-a-second-there/ - # the value has to be non-empty or else it is ignored + # and http://stackoverflow.com/questions/17383089/libcurl-delays-for-1-second-before-uploading-data-command-line-curl-does-not if rd headers['Accept'] = "application/vnd.#{Hyperion.config.vendor_string}.#{short_mimetype(rd)}" end if pd headers['Content-Type'] = content_type_for(pd.format)