Commit 6d997bed authored by Shinya Maeda's avatar Shinya Maeda

Fix statiac anlysys for http_io

parent ba5068e0
...@@ -144,7 +144,7 @@ module Gitlab ...@@ -144,7 +144,7 @@ module Gitlab
@chunk_range = response.content_range @chunk_range = response.content_range
## ##
# Note: If provider doesn’t return content_range, then we set it as we requested # Note: If provider does not return content_range, then we set it as we requested
# Provider: minio # Provider: minio
# - When the file size is larger than Content-range in responce header, it returns content_range in responce header. Status: Net::HTTPPartialContent 206 # - When the file size is larger than Content-range in responce header, it returns content_range in responce header. Status: Net::HTTPPartialContent 206
# - When the file size is smaller than Content-range in responce header, it returns content_range in responce header. Status: Net::HTTPPartialContent 206 # - When the file size is smaller than Content-range in responce header, it returns content_range in responce header. Status: Net::HTTPPartialContent 206
...@@ -154,7 +154,7 @@ module Gitlab ...@@ -154,7 +154,7 @@ module Gitlab
# Provider: GCS # Provider: GCS
# - When the file size is larger than Content-range, it returns content_range in responce header. Status: Net::HTTPPartialContent 206 # - When the file size is larger than Content-range, it returns content_range in responce header. Status: Net::HTTPPartialContent 206
# - When the file size is smaller than Content-range, it does not return content_range in responce header. Status: Net::HTTPOK 200 # - When the file size is smaller than Content-range, it does not return content_range in responce header. Status: Net::HTTPOK 200
@chunk_range = (chunk_start...chunk_start+@chunk.length) unless @chunk_range @chunk_range ||= (chunk_start...(chunk_start + @chunk.length))
end end
@chunk[chunk_offset..BUFFER_SIZE] @chunk[chunk_offset..BUFFER_SIZE]
......
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