Skip to content

Commit

Permalink
Use LimitReader instead of LimitedReader
Browse files Browse the repository at this point in the history
  • Loading branch information
dustin committed Dec 12, 2013
1 parent f503f88 commit db4d7e1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/heatweb/heatweb.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,8 @@ func rootHandler(w http.ResponseWriter, req *http.Request) {
opacity := uint8(parseInt(vals, "o", 128, 1, 255))

defer req.Body.Close()
lr := io.LimitedReader{req.Body, maxInputLength}
cr := csv.NewReader(&lr)
lr := io.LimitReader(req.Body, maxInputLength)
cr := csv.NewReader(lr)

data := []heatmap.DataPoint{}
reading := true
Expand Down

0 comments on commit db4d7e1

Please sign in to comment.