We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Directly from the documentation in a controller:
(setf (lack.response:response-status *response*) 201)
201 fell through ETYPECASE expression. Wanted one of (NULL PATHNAME LIST (VECTOR (UNSIGNED-BYTE 8))). [Condition of type SB-KERNEL:CASE-FAILURE]
(setf (lack.response:response-headers *response*) (append (lack.response:response-headers *response*) (list :content-type "application/json")))
The value "application/json" is not of type LIST [Condition of type TYPE-ERROR]
The text was updated successfully, but these errors were encountered:
Show us your entire route - is that the last line in your func? Try something like this:
(setf (ningle:route *app* "/thing/" :method :PUT) #'(lambda (params) (setf (lack.response:response-headers ningle:*response*) (append (lack.response:response-headers ningle:*response*) (list :content-type "application/json"))) (setf (lack.response:response-status ningle:*response*) 201) "worked"))
Sorry, something went wrong.
No branches or pull requests
Directly from the documentation in a controller:
The text was updated successfully, but these errors were encountered: