aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--README.md2
1 files changed, 1 insertions, 1 deletions
diff --git a/README.md b/README.md
index 2adf111..7baec7b 100644
--- a/README.md
+++ b/README.md
@@ -93,6 +93,7 @@ The following is quick example showing a few things that `lazybones` can do.
"Dummy login endpoint for returning a session cookie. Always returns
the \"true\" and sends a set-cookie header, setting 'testappsession'
to 'coolsessionbro'."
+ (print (lzb:request-body)) ; dummy implementation prints post body to stdout
(setf (lzb:response-cookie "testappsession") "coolsessionbro")
(http-ok "true"))
@@ -102,7 +103,6 @@ The following is quick example showing a few things that `lazybones` can do.
(defendpoint* :post "/hello/:who:" (:auth t) ; use the default authorizor for the app
"Post something to hello who"
- (print (lzb:request-header :content-type))
(let ((body (lzb:request-body)))
(http-ok (format nil "Hello ~a, I got your message ~a"
who body))))