Closed lwiechec closed 7 months ago
Does it make a difference when using a string key instead of a symbol key?
Got it: the headers are currently only returned when a file is retrieved:
$ curl -I http://localhost:8090/README.md
HTTP/1.1 200 OK
X-Foo-Bar: bar
content-length: 2558
Server: http-kit
Date: Thu, 8 Feb 2024 15:40:24 GMT
thank you @borkdude for a quick check! I was too confused to try with getting a file...
I changed the logic to always return the headers on every response.
I am having trouble adding extra headers (added by #8). For example. using
http-server
(as described here) - when I start it like this:http-server --dir "." --port 9998 --headers '{X-SomeHeader" "value"}'
, I do not see the header anywhere:I am using babashka v1.3.186.
Maybe I am not using it correctly ?