Skip to content

Commit

Permalink
fix(storage-service): fix chinese file name error;
Browse files Browse the repository at this point in the history
  • Loading branch information
maslow committed Nov 15, 2021
1 parent de4896d commit 31abf59
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/storage-service/src/router/file/get.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
* @Author: Maslow<wangfugen@126.com>
* @Date: 2021-08-19 16:10:27
* @LastEditTime: 2021-11-13 20:36:48
* @LastEditTime: 2021-11-15 18:10:10
* @Description:
*/

Expand Down Expand Up @@ -91,7 +91,7 @@ export async function handleGetFile(req: express.Request, res: express.Response)
}

res.set("x-bucket", bucket_name)
res.set("x-uri", filename)
res.set("x-uri", encodeURI(filename))
return stream.pipe(res)
} catch (error) {
logger.error("get file failed", error)
Expand Down

0 comments on commit 31abf59

Please sign in to comment.