Browse Source

fix download zip (#5393)

Co-authored-by: mamoodi <mamoodiha@gmail.com>
Robert Brennan 1 year ago
parent
commit
d617f6f6d8
1 changed files with 3 additions and 5 deletions
  1. 3 5
      frontend/src/api/open-hands.ts

+ 3 - 5
frontend/src/api/open-hands.ts

@@ -141,11 +141,9 @@ class OpenHands {
    * @returns Blob of the workspace zip
    */
   static async getWorkspaceZip(): Promise<Blob> {
-    const response = await openHands.post(
-      "/api/zip-directory",
-      {},
-      { responseType: "blob" },
-    );
+    const response = await openHands.get("/api/zip-directory", {
+      responseType: "blob",
+    });
     return response.data;
   }