http: fixed #128

This commit is contained in:
nadoo committed 2019-10-21 14:58:18 +08:00
1 parent 39cd60c50b
commit ca88797df4
4 files changed
+5 -2

No files matched your search

+2 -1
View File
@@ -3,6 +3,7 @@ package http
import (
"bufio"
"bytes"
"errors"
"net/textproto"
"net/url"
"strings"
@@ -45,7 +46,7 @@ func parseRequest(r *bufio.Reader) (*request, error) {
method, uri, proto, ok := parseStartLine(line)
if !ok {
return nil, err
return nil, errors.New("error in parseStartLine")
}
header, err := tpr.ReadMIMEHeader()