Skip to content

Commit

Permalink
fix(key): return stars to show key is hidden
Browse files Browse the repository at this point in the history
  • Loading branch information
darkweak committed Nov 5, 2024
1 parent a72ca34 commit bdcf017
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions docs/e2e/Souin E2E.postman_collection.json
Original file line number Diff line number Diff line change
Expand Up @@ -3498,7 +3498,7 @@
" pm.response.to.have.status(200);",
" if (exclude) {",
" pm.response.to.have.header(\"Cache-Status\");",
" pm.expect(pm.response.headers.get(\"Cache-Status\")).to.eql(\"Souin; fwd=uri-miss; key=; detail=CANNOT-HANDLE\");",
" pm.expect(pm.response.headers.get(\"Cache-Status\")).to.eql(\"Souin; fwd=uri-miss; key=*****; detail=CANNOT-HANDLE\");",
" } else {",
" pm.response.to.have.header(\"Cache-Status\");",
" if (isStore) {",
Expand All @@ -3516,7 +3516,7 @@
" expected.to.have.status(200);",
" if (exclude) {",
" pm.response.to.have.header(\"Cache-Status\");",
" pm.expect(pm.response.headers.get(\"Cache-Status\")).to.eql(\"Souin; fwd=uri-miss; key=; detail=CANNOT-HANDLE\");",
" pm.expect(pm.response.headers.get(\"Cache-Status\")).to.eql(\"Souin; fwd=uri-miss; key=*****; detail=CANNOT-HANDLE\");",
" } else {",
" expected.to.have.header(\"Cache-Status\");",
"",
Expand Down
2 changes: 1 addition & 1 deletion pkg/rfc/cache_status.go
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ func GetCacheKeyFromCtx(currentCtx ctx.Context) string {
}
}

return ""
return "*****"
}

// MissCache set miss fwd
Expand Down

0 comments on commit bdcf017

Please sign in to comment.