mirror of
https://github.com/refraction-networking/uquic.git
synced 2025-04-03 04:07:35 +03:00
http3: use correct error code when request header parsing fails (#3979)
This commit is contained in:
parent
a347d664e2
commit
ae8bdd79e0
1 changed files with 1 additions and 2 deletions
|
@ -573,8 +573,7 @@ func (s *Server) handleRequest(conn quic.Connection, str quic.Stream, decoder *q
|
|||
}
|
||||
req, err := requestFromHeaders(hfs)
|
||||
if err != nil {
|
||||
// TODO: use the right error code
|
||||
return newStreamError(ErrCodeGeneralProtocolError, err)
|
||||
return newStreamError(ErrCodeMessageError, err)
|
||||
}
|
||||
|
||||
connState := conn.ConnectionState().TLS
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue