lib/fakes3/server.rb in fakes3-1.1.0 vs lib/fakes3/server.rb in fakes3-1.2.0

- old
+ new

@@ -122,10 +122,11 @@ if real_obj.content_encoding response.header['X-Content-Encoding'] = real_obj.content_encoding response.header['Content-Encoding'] = real_obj.content_encoding end + response['Content-Disposition'] = real_obj.content_disposition if real_obj.content_disposition stat = File::Stat.new(real_obj.io.path) response['Last-Modified'] = Time.iso8601(real_obj.modified_date).httpdate response.header['ETag'] = "\"#{real_obj.md5}\"" response['Accept-Ranges'] = "bytes" @@ -332,10 +333,10 @@ def do_OPTIONS(request, response) super response['Access-Control-Allow-Origin'] = '*' response['Access-Control-Allow-Methods'] = 'PUT, POST, HEAD, GET, OPTIONS' - response['Access-Control-Allow-Headers'] = 'Accept, Content-Type, Authorization, Content-Length, ETag, X-CSRF-Token' + response['Access-Control-Allow-Headers'] = 'Accept, Content-Type, Authorization, Content-Length, ETag, X-CSRF-Token, Content-Disposition' response['Access-Control-Expose-Headers'] = 'ETag' end private