net: parser should handle EOF without newline properly.
net: parser should handle EOF without newline properly.

Fixes issue 686.

R=rsc
CC=adg, golang-dev
http://codereview.appspot.com/979044

Committer: Russ Cox <5ad239cb8a44f659eaaee0aa1ea5b94947abe557@golang.org>

tv42/old-go,gnanderson/go,tianon/debian-golang,nightlyone/golang,pombredanne/go-deleteme,h8liu/golang,dsriram/golang,gnanderson/go,nightlyone/golang,gnanderson/go,tv42/old-go,h8liu/golang,h8liu/golang,bdwalton/debian-golang,nightlyone/golang,tianon/debian-golang,ssrl/go,pombredanne/go-deleteme,apparentlymart/golang,pombredanne/go-deleteme,ssrl/go,tv42/old-go,tianon/debian-golang,tianon/debian-golang,apparentlymart/golang,dsriram/golang,gnanderson/go,dsriram/golang,apparentlymart/golang,ssrl/go,dsriram/golang,dsriram/golang,dsriram/golang,nightlyone/golang,pombredanne/go-deleteme,tv42/old-go,tv42/old-go,bdwalton/debian-golang,h8liu/golang,gnanderson/go,tianon/debian-golang,ssrl/go,pombredanne/go-deleteme,nightlyone/golang,ssrl/go,h8liu/golang,pombredanne/go-deleteme,ssrl/go,tv42/old-go,pombredanne/go-deleteme,bdwalton/debian-golang,h8liu/golang,tianon/debian-golang,bdwalton/debian-golang,tv42/old-go,apparentlymart/golang,bdwalton/debian-golang,nightlyone/golang,bdwalton/debian-golang,apparentlymart/golang,bdwalton/debian-golang,gnanderson/go,tianon/debian-golang,gnanderson/go,bdwalton/debian-golang,ssrl/go,tianon/debian-golang,h8liu/golang,apparentlymart/golang,apparentlymart/golang,nightlyone/golang,dsriram/golang