Skip to content

Commit

Permalink
http: fix nil engine panic caused by empty body
Browse files Browse the repository at this point in the history
  • Loading branch information
lesismal committed Sep 24, 2024
1 parent 7167510 commit 5ec7332
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nbhttp/processor.go
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@ func (p *ServerProcessor) OnComplete(parser *Parser) {
// }

if request.Body == nil {
request.Body = NewBodyReader(nil)
request.Body = NewBodyReader(engine)
}

response := NewResponse(parser, request)
Expand Down

0 comments on commit 5ec7332

Please sign in to comment.