🧚 A practical web framework for Gleam

Fix json_response parameter name

authored by

Rok Fajfar and committed by
Louis Pilfold
9cee8c1f aaeae8da

+2 -2
+2 -2
src/wisp.gleam
··· 198 198 /// // -> Response(200, [#("content-type", "application/json")], Text(body)) 199 199 /// ``` 200 200 /// 201 - pub fn json_response(html: StringBuilder, status: Int) -> Response { 202 - HttpResponse(status, [#("content-type", "application/json")], Text(html)) 201 + pub fn json_response(json: StringBuilder, status: Int) -> Response { 202 + HttpResponse(status, [#("content-type", "application/json")], Text(json)) 203 203 } 204 204 205 205 /// Set the body of a response to a given HTML document, and set the