Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
U
uppy-s3_multipart
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
open-source
uppy-s3_multipart
Commits
fb02f531
Unverified
Commit
fb02f531
authored
Aug 27, 2021
by
Jodi Showers
Committed by
GitHub
Aug 27, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
return 204 for /s3/multipart/:upload_id/:part_no (#20)
parent
1f374062
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
0 deletions
+15
-0
app.rb
lib/uppy/s3_multipart/app.rb
+5
-0
app_test.rb
test/app_test.rb
+10
-0
No files found.
lib/uppy/s3_multipart/app.rb
View file @
fb02f531
...
@@ -59,6 +59,11 @@ module Uppy
...
@@ -59,6 +59,11 @@ module Uppy
r
.
halt
204
r
.
halt
204
end
end
# OPTIONS /s3/multipart/:uploadId/:partNumber
r
.
options
String
,
String
do
|
upload_id
,
part_number
|
r
.
halt
204
end
# GET /s3/multipart/:uploadId
# GET /s3/multipart/:uploadId
r
.
get
String
do
|
upload_id
|
r
.
get
String
do
|
upload_id
|
key
=
param!
(
"key"
)
key
=
param!
(
"key"
)
...
...
test/app_test.rb
View file @
fb02f531
...
@@ -110,6 +110,16 @@ describe Uppy::S3Multipart::App do
...
@@ -110,6 +110,16 @@ describe Uppy::S3Multipart::App do
end
end
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
describe
"OPTIONS /s3/multipart"
do
it
"returns an empty response"
do
it
"returns an empty response"
do
response
=
app
.
options
"/s3/multipart"
response
=
app
.
options
"/s3/multipart"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment