mirror of
https://github.com/vale981/lack
synced 2025-03-05 09:21:39 -05:00
Set a default content type.
Otherwise a bad request is returned on post requests without a body.
This commit is contained in:
parent
0bb74d0610
commit
65bad8e0a1
1 changed files with 3 additions and 1 deletions
|
@ -73,7 +73,9 @@
|
|||
(setf uri (getf env :request-uri)))
|
||||
(unless uri-scheme
|
||||
;; for some reason, it is called url-scheme in the environment plist :(
|
||||
(setf uri-scheme (getf env :url-scheme))))
|
||||
(setf uri-scheme (getf env :url-scheme)))
|
||||
(unless content-type
|
||||
(setf content-type "application/octet-stream")))
|
||||
|
||||
;; Cookies
|
||||
(unless (request-cookies req)
|
||||
|
|
Loading…
Add table
Reference in a new issue