From 39ae71f51227f64748028914c0a7975fc0fe01cc Mon Sep 17 00:00:00 2001 From: wangyaqi Date: Mon, 8 Feb 2021 14:34:36 +0800 Subject: [PATCH] docs: uniCloud http function --- docs/uniCloud/http.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/docs/uniCloud/http.md b/docs/uniCloud/http.md index 1f39b7515..d85fc3a4d 100644 --- a/docs/uniCloud/http.md +++ b/docs/uniCloud/http.md @@ -14,6 +14,7 @@ **使用限制** - 腾讯云免费服务空间最多只支持配置10个云函数URL化地址 +- 阿里云暂不支持修改响应头中的content-disposition,即无法返回html并在浏览器中展示,只可以触发下载 ## 操作步骤 @@ -241,6 +242,8 @@ content-length: 13 将`content-type`设置为`text/html`,即可在`body`中返回 HTML,会被浏览器自动解析: +**阿里云目前无法返回html并在浏览器中展示,只可以触发下载** + ```js exports.main = function() { return { -- GitLab