Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can not override response header for an anonymous user #37

Closed
FrankFang opened this issue Apr 29, 2019 · 5 comments
Closed

Can not override response header for an anonymous user #37

FrankFang opened this issue Apr 29, 2019 · 5 comments

Comments

@FrankFang
Copy link

我调用 service_url 的到

https://jrgcdn1.oss-cn-beijing.aliyuncs.com/development/imvla2sv9m9bzch5n5uqj1o3d4mk?response-content-disposition=inline%3B+filename%3D%22hi%22%3B+filename%2A%3DUTF-8%27%27hi&response-content-type=image%2Fpng

然而用浏览器访问这个 url 会得到如下错误

image

去掉查询参数反而不会有报错:

https://jrgcdn1.oss-cn-beijing.aliyuncs.com/development/imvla2sv9m9bzch5n5uqj1o3d4mk

得到图片内容。

难道我调用了 service_url 后要自行删掉查询参数?

不太理解,请指教。

@FrankFang
Copy link
Author

FrankFang commented Apr 29, 2019

这是阿里云给我的回复

工程师 69576 号 : 您好
抱歉,让您久等了。

您的访问形式有问题,OSS不支持。
正常访问形式:https://jrgcdn1.oss-cn-beijing.aliyuncs.com/development/nb8qeb3deupfdc5r3lva4mtsuomk

如果想设置文件的http头参数,参考附件1设置。
https://help.aliyun.com/document_detail/31913.html

@huacnlee
Copy link
Owner

mode: public 的吗?

@huacnlee
Copy link
Owner

Fixed in 0.6.4

@FrankFang
Copy link
Author

@huacnlee Thanks. 打算什么时候发布一下?bundle install 没有找到 0.6.4

@FrankFang
Copy link
Author

我的错,官方源有 0.6.4,ruby china 的源还没更新

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants