On 10/23/2013 04:04 PM, DavidVorick wrote:
>
> In src/libytcd/server.go:
>
> > @@ -28,6 +29,18 @@ func loadHomepage(w http.ResponseWriter, r *http.Request) {
> >
> >  func handleTransaction(w http.ResponseWriter, r *http.Request) {
> >  	io.WriteString(w, "learning how to parse http requests")
> > +
> > +	var output []byte
> > +	n, err := r.Body.Read(output)
>
> but we probably shouldn't do a ReadAll, because we shouldn't trust the 
> input to be small?
>
> —
> Reply to this email directly or view it on GitHub 
> <https://github.com/DavidVorick/bytecoin/pull/7/files#r7169721>.
>
Actually I think read just reads an arbitrary number of bytes