gitignore

This commit is contained in:
Tanishq Dubey 2024-07-16 13:22:46 -04:00
parent b23320c288
commit 435b4c61d3
2 changed files with 2 additions and 1 deletions

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
dwshttp

View File

@ -110,6 +110,7 @@ func ParseHTTPRequest(b []byte) (HTTPRequest, error) {
ret.StartLine.RequestTarget = string(rt[:])
_, hv, br := ReadBytesUntil(b, '\r')
b = br
if hv == nil {
return ret, errors.New("could not find http version in request")
}
@ -169,7 +170,6 @@ func ParseHTTPRequest(b []byte) (HTTPRequest, error) {
}
// Parse Message Body
// Message body if it exists
if _, ok := ret.Headers["Transfer-Encoding"]; ok {
if _, okc := ret.Headers["Content-Length"]; okc {