Merge pull request #788 from ivan-m/header-location

Move location of header information
This commit is contained in:
Oleg Grenrus 2017-07-31 11:40:41 +03:00 committed by GitHub
commit a9bc22d5c9

View file

@ -588,7 +588,12 @@ markdown api = unlines $
headersStr :: [Text] -> [String]
headersStr [] = []
headersStr l = [""] ++ map headerStr l ++ [""]
headersStr l =
"#### Headers:" :
"" :
map headerStr l ++
"" :
[]
where headerStr hname = "- This endpoint is sensitive to the value of the **"
++ unpack hname ++ "** HTTP header."