diff options
| author | Evgeny Ermakov <evgeny.v.ermakov@gmail.com> | 2020-02-12 01:23:35 +1100 |
|---|---|---|
| committer | Garrett D'Amore <garrett@damore.org> | 2020-02-13 20:21:09 -0800 |
| commit | 0a315e4e5f7d90789babba312079462953114e0d (patch) | |
| tree | 193f07065b2145fca39406420666ee740166e117 /demo/rest | |
| parent | cdda78dbb793e10a5fcbd4748b9d82207ff0f19a (diff) | |
| download | nng-0a315e4e5f7d90789babba312079462953114e0d.tar.gz nng-0a315e4e5f7d90789babba312079462953114e0d.tar.bz2 nng-0a315e4e5f7d90789babba312079462953114e0d.zip | |
Fix typos in comments
Diffstat (limited to 'demo/rest')
| -rw-r--r-- | demo/rest/server.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/demo/rest/server.c b/demo/rest/server.c index f4e8b19a..5a59756c 100644 --- a/demo/rest/server.c +++ b/demo/rest/server.c @@ -275,7 +275,7 @@ rest_start(uint16_t port) fatal("nng_http_server_hold", rv); } - // Allocate the handler - we usea dynamic handler for REST + // Allocate the handler - we use a dynamic handler for REST // using the function "rest_handle" declared above. rv = nng_http_handler_alloc(&handler, url->u_path, rest_handle); if (rv != 0) { @@ -287,7 +287,7 @@ rest_start(uint16_t port) } // We want to collect the body, and we (arbitrarily) limit this to // 128KB. The default limit is 1MB. You can explicitly collect - // the deta yourself with another HTTP read transaction by disabling + // the data yourself with another HTTP read transaction by disabling // this, but that's a lot of work, especially if you want to handle // chunked transfers. if ((rv = nng_http_handler_collect_body(handler, true, 1024 * 128)) != |
