Skip to content

Commit 0c961f6

Browse files
authored
Fix #1405 (#1429)
Request bodies are not really supposed to be used in GET requests.
1 parent ba30dd1 commit 0c961f6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

servant/src/Servant/API/ContentTypes.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
--
2121
-- Content-Types are used in `ReqBody` and the method combinators:
2222
--
23-
-- >>> type MyEndpoint = ReqBody '[JSON, PlainText] Book :> Get '[JSON, PlainText] Book
23+
-- >>> type MyEndpoint = ReqBody '[JSON, PlainText] Book :> Put '[JSON, PlainText] Book
2424
--
2525
-- Meaning the endpoint accepts requests of Content-Type @application/json@
2626
-- or @text/plain;charset-utf8@, and returns data in either one of those

0 commit comments

Comments
 (0)