Unverified Commit fb02f531 by Jodi Showers Committed by GitHub

return 204 for /s3/multipart/:upload_id/:part_no (#20)

parent 1f374062
......@@ -59,6 +59,11 @@ module Uppy
r.halt 204
end
# OPTIONS /s3/multipart/:uploadId/:partNumber
r.options String, String do |upload_id, part_number|
r.halt 204
end
# GET /s3/multipart/:uploadId
r.get String do |upload_id|
key = param!("key")
......
......@@ -110,6 +110,16 @@ describe Uppy::S3Multipart::App do
end
end
describe "OPTIONS /s3/multipart/:uploadId/:partNumber" do
it "returns an empty response" do
response = app.options "/s3/multipart/foo/1"
assert_equal 204, response.status
assert_equal Hash.new, response.headers
assert_equal "", response.body_binary
end
end
describe "OPTIONS /s3/multipart" do
it "returns an empty response" do
response = app.options "/s3/multipart"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment