diff options
author | Ludovic Courtès <ludo@gnu.org> | 2014-01-15 23:41:23 +0100 |
---|---|---|
committer | Ludovic Courtès <ludo@gnu.org> | 2014-01-15 23:41:49 +0100 |
commit | 802a25b1ed5c738aa5f9d3d01f33eb89b22afd1b (patch) | |
tree | ef449fcd3c049ca5c64f25ca7fb6136a05d210d4 /libguile/script.c | |
parent | 6df03222128887bf9982631183ab1cf6c144fe42 (diff) | |
download | guile-802a25b1ed5c738aa5f9d3d01f33eb89b22afd1b.tar.gz |
web: Don't throw if a response is longer than its Content-Length says.
* module/web/response.scm (make-delimited-input-port): Read at most LEN
bytes from PORT, instead of trying to read more and returning an error
if more is available. Try again when 'get-bytevector-n!' return zero.
* test-suite/tests/web-response.test (example-1): Add garbage after the
body itself.
Diffstat (limited to 'libguile/script.c')
0 files changed, 0 insertions, 0 deletions