From e0c9b8af42356a9c11ecbc8f544336cbd56132e5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=88=98=E5=AD=90=E6=97=BA?= <15039612+liu-ziwang123@user.noreply.gitee.com> Date: Tue, 12 Nov 2024 17:42:49 +0800 Subject: [PATCH] =?UTF-8?q?fix:=E7=BB=9F=E4=B8=80=E5=AF=86=E7=A0=81?= =?UTF-8?q?=E5=A4=B4=E5=AD=97=E6=AE=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- godo/files/pwdfile.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/godo/files/pwdfile.go b/godo/files/pwdfile.go index c56b3a1..762eb99 100644 --- a/godo/files/pwdfile.go +++ b/godo/files/pwdfile.go @@ -72,7 +72,7 @@ func HandleReadFile(w http.ResponseWriter, r *http.Request) { // 设置文件密码 func HandleSetFilePwd(w http.ResponseWriter, r *http.Request) { - fPwd := r.Header.Get("filepwd") + fPwd := r.Header.Get("Pwd") salt, err := GetSalt(r) // 获取盐值 // 处理获取盐值时的错误 if err != nil || fPwd == "" { @@ -102,7 +102,7 @@ func HandleSetFilePwd(w http.ResponseWriter, r *http.Request) { // 更改文件密码 func HandleChangeFilePwd(w http.ResponseWriter, r *http.Request) { - filePwd := r.Header.Get("filePwd") + filePwd := r.Header.Get("Pwd") salt, err := GetSalt(r) // 获取盐值 if err != nil || filePwd == "" { // 检查错误和密码是否为空 libs.ErrorMsg(w, "参数错误")