Skip to content

Commit

Permalink
Merge pull request #21 from atelieryuxki/main
Browse files Browse the repository at this point in the history
Debug ocsp-request bytes when parsing failed.
  • Loading branch information
yuxki committed Oct 16, 2023
2 parents 3d38ca2 + 584aa8a commit 3790817
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cache_handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ func (c CacheHandler) ServeHTTP(w http.ResponseWriter, r *http.Request) {

ocspReq, err := ocsp.ParseRequest(body)
if err != nil {
logger.Debug().Err(err).Msg("")
logger.Debug().Err(err).Bytes("ocsp-request-bytes", body).Msg("")
_, err = w.Write(ocsp.MalformedRequestErrorResponse)
if err != nil {
logger.Error().Err(err).Msg("")
Expand Down

0 comments on commit 3790817

Please sign in to comment.