Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
G
golang
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
go
golang
Commits
8d130f5d
Commit
8d130f5d
authored
Oct 06, 2010
by
Stephen Ma
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
http: return the correct error if a header line is too long.
R=golang-dev, r2 CC=golang-dev
https://golang.org/cl/2372042
parent
4e3c58cd
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
request.go
src/pkg/http/request.go
+2
-0
No files found.
src/pkg/http/request.go
View file @
8d130f5d
...
@@ -249,6 +249,8 @@ func readLineBytes(b *bufio.Reader) (p []byte, err os.Error) {
...
@@ -249,6 +249,8 @@ func readLineBytes(b *bufio.Reader) (p []byte, err os.Error) {
// If the caller asked for a line, there should be a line.
// If the caller asked for a line, there should be a line.
if
err
==
os
.
EOF
{
if
err
==
os
.
EOF
{
err
=
io
.
ErrUnexpectedEOF
err
=
io
.
ErrUnexpectedEOF
}
else
if
err
==
bufio
.
ErrBufferFull
{
err
=
ErrLineTooLong
}
}
return
nil
,
err
return
nil
,
err
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment