add support for Accept-Encoding header

This commit is contained in:
2025-05-27 14:59:41 -07:00
parent 978ae8fd03
commit 6b1c6de309
2 changed files with 24 additions and 13 deletions

View File

@ -39,7 +39,7 @@
True (get address 0))) f": {(. parsed-request (get "method"))} {(. parsed-request (get "route") (get "path"))}"))
(setv response (match-request parsed-request))
(.sendall client-socket (http.response.send #** response))
(.sendall client-socket (http.response.send :request-headers (.get parsed-request "headers") #** response))
(except [e Exception]
(.warn log (format-exc))