pull/9/head
Matthew Butterick 11 years ago
parent 1135abad7e
commit ddb8da0181

@ -9,9 +9,10 @@
(define (logger req) (define (logger req)
(define client (request-client-ip req)) (define client (request-client-ip req))
(when (equal? client "::1") (message "Request:" (url->string (request-uri req))
(set! client "localhost")) "from" (if (equal? client "::1")
(message "Request:" (url->string (request-uri req)) "from" client)) "localhost"
client)))
(define/contract (route-wrapper route-proc) (define/contract (route-wrapper route-proc)
(procedure? . -> . procedure?) (procedure? . -> . procedure?)

Loading…
Cancel
Save