Skip to content

Commit

Permalink
Merge pull request #100 from noocsharp/master
Browse files Browse the repository at this point in the history
Fix spelling mistake in khtml_elem.3
  • Loading branch information
kristapsdz authored Sep 15, 2024
2 parents 0d29375 + f551710 commit 1282b2a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions man/kcgijson.3
Original file line number Diff line number Diff line change
Expand Up @@ -59,14 +59,13 @@ already be initialised, and the request be for
The following fragment prints out a simple JSON object.
Error checking is omitted for brevity.
.Bd -literal -offset indent
kjson_open(&req, r);
kcgi_writer_disable(r);
khttp_head(r, kresps[KRESP_STATUS],
"%s", khttps[KHTTP_200]);
khttp_head(r, kresps[KRESP_CONTENT_TYPE],
"%s", kmimetypes[KMIME_APP_JSON]);
khttp_body(r);
kjson_open(&req);
kjson_open(&req, r);
kjson_objp_open(&req, "anobj");
kjson_putstringp(&req, "astring", "baz");
kjson_putintp(&req, "anint", 12345);
Expand Down

0 comments on commit 1282b2a

Please sign in to comment.