Changeset 29917 in project


Ignore:
Timestamp:
10/13/13 20:41:02 (8 years ago)
Author:
sjamaan
Message:

http-client: Detect new intarweb convention of returning #f for "no response"

Location:
release/4/http-client/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • release/4/http-client/trunk/http-client.meta

    r27856 r29917  
    22
    33((synopsis "High-level HTTP client library")
    4  (depends (intarweb "1.0") openssl (uri-common 0.7) (message-digest "3.0.0")
     4 (depends (intarweb "1.2") openssl (uri-common 0.7) (message-digest "3.0.0")
    55          (md5 "3.0.0") string-utils (sendfile "1.7.4"))
    66 (author "Peter Bex")
  • release/4/http-client/trunk/http-client.scm

    r29879 r29917  
    518518                           (close-connection! con)))))
    519519        (process-set-cookie! con (request-uri req) response)
    520         (case (response-code response)
     520        (case (and response (response-code response))
     521          ((#f)
     522           (http-client-error 'send-request
     523                              "Server closed connection before sending response"
     524                              (list req)
     525                              'premature-disconnection
     526                              'uri new-uri))
    521527          ;; TODO: According to spec, we should provide the user with a choice
    522528          ;; when it's not a GET or HEAD request...
Note: See TracChangeset for help on using the changeset viewer.