ns-rss-spider 1.1.14 → 1.1.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/upload/index.js +6 -1
- package/package.json +1 -1
package/dist/cjs/upload/index.js
CHANGED
|
@@ -63,7 +63,12 @@ async function uploadContent({
|
|
|
63
63
|
const url = uploadRst.data.data.url;
|
|
64
64
|
const storePath = uploadRst.data.data.storePath;
|
|
65
65
|
console.log(import_zx.chalk.green("正在上传"));
|
|
66
|
-
const res = await import_axios.default.put(url, item
|
|
66
|
+
const res = await import_axios.default.put(url, item, {
|
|
67
|
+
headers: {
|
|
68
|
+
// for azure upload
|
|
69
|
+
"x-ms-blob-type": "BlockBlob"
|
|
70
|
+
}
|
|
71
|
+
}).catch((e) => {
|
|
67
72
|
console.error(import_zx.chalk.red("upload oss error"), e);
|
|
68
73
|
});
|
|
69
74
|
if (!res || res.status !== 200) {
|