Web client+server: Add Content-Length header for empty bodies.
authorMark H Weaver <mhw@netris.org>
Thu, 12 Sep 2013 22:34:39 +0000 (18:34 -0400)
committerMark H Weaver <mhw@netris.org>
Thu, 12 Sep 2013 22:36:45 +0000 (18:36 -0400)
commit3b2226ec916b648b23a2ae30ce1a657d16d61314
tree60e9b2c2987a414e8ce7b2a90907459f2b14f80c
parent361553b49d89b2668cff967401d602ab930a26c4
Web client+server: Add Content-Length header for empty bodies.

* module/web/client.scm (sanitize-request): Add a Content-Length
  header if a body if given, even if the body is empty.

* module/web/server.scm (sanitize-response): Add a Content-Length
  header if a body if given, even if the body is empty.
module/web/client.scm
module/web/server.scm