Skip to content

Commit

Permalink
fix(services/oss): Enable standard behavior for oss range (#1070)
Browse files Browse the repository at this point in the history
Signed-off-by: Xuanwo <[email protected]>

Signed-off-by: Xuanwo <[email protected]>
  • Loading branch information
Xuanwo authored Dec 12, 2022
1 parent cf34634 commit e62981e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/services/oss/backend.rs
Original file line number Diff line number Diff line change
Expand Up @@ -424,6 +424,9 @@ impl Backend {

if !range.is_full() {
req = req.header(RANGE, range.to_header());
// Adding `x-oss-range-behavior` header to use standard behavior.
// ref: https://help.aliyun.com/document_detail/39571.html
req = req.header("x-oss-range-behavior", "standard");
}

let req = req
Expand Down

1 comment on commit e62981e

@github-actions
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Deploy preview for opendal ready!

✅ Preview
https://opendal-mf950p7r2-databend.vercel.app

Built with commit e62981e.
This pull request is being automatically deployed with vercel-action

Please sign in to comment.