Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: 解决下载空文件报错的问题 #2930

Merged
merged 1 commit into from
Jan 25, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions bcs-services/bcs-bscp/pkg/audit/audit.go
Original file line number Diff line number Diff line change
Expand Up @@ -195,9 +195,9 @@ var auditGrpcMap = map[string]func() (audit.Resource, audit.Action){
return audit.Resource{ResourceType: audit.ResourceType(sys.Application)},
audit.Action{ActionID: "list_config_item_by_tuple"}
},
"/pbcs.Config/GetReleasedKvReq": func() (audit.Resource, audit.Action) {
"/pbcs.Config/GetReleasedKv": func() (audit.Resource, audit.Action) {
return audit.Resource{ResourceType: audit.ResourceType(sys.Application)},
audit.Action{ActionID: "get_released_kv_req"}
audit.Action{ActionID: "get_released_kv"}
},
"/pbcs.Config/ListReleasedKvs": func() (audit.Resource, audit.Action) {
return audit.Resource{ResourceType: audit.ResourceType(sys.Application)},
Expand Down
2 changes: 1 addition & 1 deletion bcs-services/bcs-bscp/pkg/audit/middleware.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ func Audit(next http.Handler) http.Handler {
defer func() {
status := ww.Status()
msg := "Success"
if status != http.StatusOK {
if status >= http.StatusBadRequest {
rs := struct {
Error struct {
Message string `json:"message"`
Expand Down
Loading