Skip to content

Commit e9ade34

Browse files
committed
fix word content spelling
1 parent a5882d3 commit e9ade34

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

gateway/gateway_response.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ func rewriteResponse(resp *http.Response) (err error) {
8383
vulnName, _ := firewall.VulnMap.Load(policy.VulnID)
8484
hitInfo := &models.HitInfo{TypeID: 2, PolicyID: policy.ID, VulnName: vulnName.(string)}
8585
go firewall.LogGroupHitRequest(r, app.ID, srcIP, policy)
86-
blockContent := GenerateBlockConcent(hitInfo)
86+
blockContent := GenerateBlockContent(hitInfo)
8787
resp.StatusCode = 403
8888
resp.Body = io.NopCloser(bytes.NewBuffer(blockContent))
8989
resp.ContentLength = int64(len(blockContent))

gateway/waf_block.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,15 +31,15 @@ func GenerateBlockPage(w http.ResponseWriter, hitInfo *models.HitInfo) {
3131
}
3232
}
3333

34-
// GenerateBlockConcent ...
35-
func GenerateBlockConcent(hitInfo *models.HitInfo) []byte {
34+
// GenerateBlockContent ...
35+
func GenerateBlockContent(hitInfo *models.HitInfo) []byte {
3636
if tmplBlockResp == nil {
3737
tmplBlockResp, _ = template.New("blockResp").Parse(data.NodeSetting.BlockHTML)
3838
}
3939
buf := &bytes.Buffer{}
4040
err := tmplBlockResp.Execute(buf, hitInfo)
4141
if err != nil {
42-
utils.DebugPrintln("GenerateBlockConcent tmpl.Execute error", err)
42+
utils.DebugPrintln("GenerateBlockContent tmpl.Execute error", err)
4343
}
4444
return buf.Bytes()
4545
}

0 commit comments

Comments
 (0)