Changeset 29868 in project


Ignore:
Timestamp:
10/08/13 21:11:35 (8 years ago)
Author:
sjamaan
Message:

intarweb: Fix calls to header-contents in request-has-message-body? (thanks to Brian St. Pierre)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • release/4/intarweb/trunk/intarweb.scm

    r29821 r29868  
    106106       base64 defstruct uri-common files)
    107107
    108 ;; The below can all be #f if you want no limit
     108;; The below can all be #f if you want no limit (not recommended!)
    109109(define http-line-limit (make-parameter 1024))
    110110(define http-header-limit (make-parameter 256))
     
    302302   (lambda (req)
    303303     (let ((headers (request-headers req)))
    304        (or (header-contents headers 'content-length)
    305            (header-contents headers 'transfer-encoding))))))
     304       (or (header-contents 'content-length headers)
     305           (header-contents 'transfer-encoding headers))))))
    306306
    307307;; RFC2616, Section 4.3: "For response messages, whether or not a
Note: See TracChangeset for help on using the changeset viewer.