Skip to content

Fix http-response/content-type #179

Merged
yogthos merged 1 commit into
kit-clj:masterfrom
jramosg:master
Apr 28, 2026
Merged

Fix http-response/content-type #179
yogthos merged 1 commit into
kit-clj:masterfrom
jramosg:master

Conversation

@jramosg
Copy link
Copy Markdown
Contributor

@jramosg jramosg commented Apr 28, 2026

Updated the handler to use the correct response utility from the ring library.
This prevents clj-kondo warningring.util.http-response/content-type unresolved var, although it is really available

https://github.com/metosin/ring-http-response

created and not-found are same in both packages. Also rest of the public vars in ring.util.response are available via ring.util.http-response. These include: status, header, file-response, content-type, find-header, get-header, update-header, charset, set-cookie, response? resource-data, url-response and resource-response.

Updated the handler to use the correct response utility
from the ring library.
`ring.util.http-response/content-type` does not exist
@yogthos yogthos merged commit b5bbc05 into kit-clj:master Apr 28, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants