Commit ffcfeee8 by liyijie

feat: 增加OPTIONS的操作要求

parent 5183b0c0
......@@ -59,6 +59,11 @@ module Uppy
r.halt 204
end
# OPTIONS /s3/multipart/:uploadId
r.options String do |upload_id|
r.halt 204
end
# OPTIONS /s3/multipart/:uploadId/:partNumber
r.options String, String do |upload_id, part_number|
r.halt 204
......@@ -92,7 +97,7 @@ module Uppy
r.get String, String do |upload_id, part_number|
key = param!("key")
result = client_call(:prepare_upload_part, upload_id: upload_id, key: key, part_number: part_number)
result = client(:prepare_upload_part, upload_id: upload_id, key: key, part_number: part_number)
{ url: result.fetch(:url) }
end
......
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