" on " (seconds->string)))
(condition-case
(let* ((line (read-line in-port))
- (selector (string-trim-both line)))
+ (selector-raw (string-trim-both line))
+ (selector (if (= (string-length selector-raw) 0)
+ "/"
+ selector-raw)))
(condition-case
(begin
(with-output-to-port out-port
(lambda ()
- (serve-selector (if (= (string-length selector) 0)
- "/"
- selector)
- config)))
+ (serve-selector selector config)))
(print "... served selector '" selector "'. Closing connection."))
(o (exn)
(print-error-message o out-port)