Browse Source

fix(rtc.asset): add headers when upload assets

rcmerci 1 year ago
parent
commit
5c110bc61a
1 changed files with 2 additions and 1 deletions
  1. 2 1
      src/main/frontend/worker/rtc/asset.cljs

+ 2 - 1
src/main/frontend/worker/rtc/asset.cljs

@@ -63,7 +63,8 @@
         (doseq [[asset-uuid put-url] asset-uuid->url]
           (assert (uuid? asset-uuid) asset-uuid)
           (let [{:keys [status] :as r}
-                (m/? (c.m/<! (http/put put-url {:body (js/JSON.stringify
+                (m/? (c.m/<! (http/put put-url {:headers {"x-amz-meta-checksum" "TEST-CHECKSUM"}
+                                                :body (js/JSON.stringify
                                                        (clj->js {:TEST-ASSET true
                                                                  :asset-uuid (str asset-uuid)
                                                                  :graph-uuid (str graph-uuid)}))