fix error handling in read-{request,response}-body/latin-1
authorAndy Wingo <wingo@pobox.com>
Sat, 4 Dec 2010 18:45:09 +0000 (19:45 +0100)
committerAndy Wingo <wingo@pobox.com>
Sat, 4 Dec 2010 18:45:09 +0000 (19:45 +0100)
commitf3d390939b841067917beb821075368a6395dccc
treedc2fc99f7e4f2aee7a36ea492969252f1a59247f
parent3ef6650def28f7c29a2cc983086468d3195167d4
fix error handling in read-{request,response}-body/latin-1

* module/web/request.scm (read-request-body/latin-1):
* module/web/response.scm (read-response-body/latin-1): Detect short
  reads instead of returning a full buffer with the last bits zeroed
  out. (Before the make-string commit, they contained uninitialized
  memory, which was a fairly serious error.)
module/web/request.scm
module/web/response.scm