Skip to content

Commit

Permalink
Merge remote-tracking branch 'github-bk-bcs/master'
Browse files Browse the repository at this point in the history
* github-bk-bcs/master:
  fix: 解决下载空文件报错的问题 (#2930)
  • Loading branch information
wenxinlee2015 committed Jan 26, 2024
2 parents d3b3f28 + f8c0d8b commit 8270362
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
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

0 comments on commit 8270362

Please sign in to comment.