🧚 A practical web framework for Gleam

Use json_response in json_response example

Potentialy a copy-paste error from the html_response function.

authored by

Michael Jones and committed by
Louis Pilfold
f5f5bf38 394aa9a7

+1 -1
+1 -1
src/wisp.gleam
··· 196 196 /// 197 197 /// ```gleam 198 198 /// let body = string_builder.from_string("{\"name\": \"Joe\"}") 199 - /// html_response(body, 200) 199 + /// json_response(body, 200) 200 200 /// // -> Response(200, [#("content-type", "application/json")], Text(body)) 201 201 /// ``` 202 202 ///