Updated comments.
This commit is contained in:
parent
b8cab6e3b5
commit
f20b212942
1 changed files with 2 additions and 2 deletions
|
@ -37,9 +37,9 @@
|
||||||
(lambda (#!optional given-path)
|
(lambda (#!optional given-path)
|
||||||
(let ((accept (header-values 'accept
|
(let ((accept (header-values 'accept
|
||||||
(request-headers (current-request)))))
|
(request-headers (current-request)))))
|
||||||
;; If client 'EventSource' JS code requested SSE page...
|
;; If client's EventSource (JS code) requested SSE page...
|
||||||
(if (memq 'text/event-stream accept)
|
(if (memq 'text/event-stream accept)
|
||||||
;; ...complete handshake and keep connection alive with 'sse-proc'.
|
;;...complete handshake & keep connection alive with 'sse-proc'.
|
||||||
(lambda ()
|
(lambda ()
|
||||||
(with-headers '((content-type text/event-stream)
|
(with-headers '((content-type text/event-stream)
|
||||||
(cache-control no-cache)
|
(cache-control no-cache)
|
||||||
|
|
Loading…
Reference in a new issue