diff --git a/src/main/java/com/knowledge/base/infrastructure/north/controller/FileQueryController.java b/src/main/java/com/knowledge/base/infrastructure/north/controller/FileQueryController.java index d75d226..599017a 100644 --- a/src/main/java/com/knowledge/base/infrastructure/north/controller/FileQueryController.java +++ b/src/main/java/com/knowledge/base/infrastructure/north/controller/FileQueryController.java @@ -104,7 +104,7 @@ public class FileQueryController { @GetMapping("/fetch-os-upload-history") public ResponseEntity listUploadedFiles( @CookieValue(value = ConstantConfig.COOKIE_KEY, required = false) String cookieToken, - @RequestHeader("Authorization") String token, + @RequestHeader(value = "Authorization", required = false) String token, @RequestParam(defaultValue = "1") int page, @RequestParam(defaultValue = "10") int size ) { diff --git a/src/main/java/com/knowledge/base/infrastructure/north/controller/FileWriteController.java b/src/main/java/com/knowledge/base/infrastructure/north/controller/FileWriteController.java index 1909f46..3c26412 100644 --- a/src/main/java/com/knowledge/base/infrastructure/north/controller/FileWriteController.java +++ b/src/main/java/com/knowledge/base/infrastructure/north/controller/FileWriteController.java @@ -138,7 +138,7 @@ public class FileWriteController { @PostMapping("/upload-files") public ResponseEntity uploadFolderToOS( @CookieValue(value = ConstantConfig.COOKIE_KEY, required = false) String cookieToken, - @RequestHeader("Authorization") String token, + @RequestHeader(value = "Authorization", required = false) String token, @RequestParam("files") MultipartFile[] files, @RequestParam("bucket") String bucket ) {