stub fixes to http 1.0 support in the web server
authorAndy Wingo <wingo@pobox.com>
Mon, 29 Nov 2010 11:05:57 +0000 (12:05 +0100)
committerAndy Wingo <wingo@pobox.com>
Wed, 1 Dec 2010 09:13:30 +0000 (10:13 +0100)
commitc6371902036f68c96c2bdb22d2ff9f57846ea652
treec4d505d080f619a819037ec790f81f6e3219c0c4
parentc0f6c1638bb920d5cf5ec3210d91bc9fb0c70319
stub fixes to http 1.0 support in the web server

* module/web/server.scm (read-client): Fix number of returned values in
  the case in which there is an error reading the client.
  (sanitize-response): Add a case to adapt the reponse to the request
  version.
  (handle-request): Sanitize the response within an error-handling
  block.
  (serve-one-client): Move sanitation out of here.

* module/web/server/http.scm (keep-alive?): A more proper detection on
  whether we should support persistent connections.

* module/web/response.scm (adapt-response-version): New routine, to
  adapt a response to a given version. Currently a stub.
module/web/response.scm
module/web/server.scm
module/web/server/http.scm