fix response short read bug

https://code.google.com/p/go/issues/detail?id=5738