diff options
| author | Garrett D'Amore <garrett@damore.org> | 2024-12-22 12:27:49 -0800 |
|---|---|---|
| committer | Garrett D'Amore <garrett@damore.org> | 2024-12-22 12:27:49 -0800 |
| commit | 2662596f105fc98ae1d2aa3b6137261bb351a8df (patch) | |
| tree | 0c23c11eab6229cd7481a6294e1b447a6f309de7 /src/supplemental/http/http_server_test.c | |
| parent | 10f6fc5141a15e368dac813a38942cb66d5ddef4 (diff) | |
| download | nng-2662596f105fc98ae1d2aa3b6137261bb351a8df.tar.gz nng-2662596f105fc98ae1d2aa3b6137261bb351a8df.tar.bz2 nng-2662596f105fc98ae1d2aa3b6137261bb351a8df.zip | |
HTTP: nng_http_handler_set_method no longer fails
Diffstat (limited to 'src/supplemental/http/http_server_test.c')
| -rw-r--r-- | src/supplemental/http/http_server_test.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/src/supplemental/http/http_server_test.c b/src/supplemental/http/http_server_test.c index f29fa52b..e1d13ad2 100644 --- a/src/supplemental/http/http_server_test.c +++ b/src/supplemental/http/http_server_test.c @@ -346,10 +346,9 @@ test_server_method_too_long(void) NUTS_PASS(nng_http_handler_alloc_static( &h, "/home.html", doc1, strlen(doc1), "text/html")); - NUTS_FAIL(nng_http_handler_set_method(h, - "THISMETHODISFARFARTOOLONGTOBEVALIDASAMETHODASITISLONGER" - "THANTHIRTYTWOBYTES"), - NNG_EINVAL); + nng_http_handler_set_method(h, + "THISMETHODISFARFARTOOLONGTOBEVALIDASAMETHODASITISLONGER" + "THANTHIRTYTWOBYTES"); } void @@ -393,7 +392,7 @@ test_server_post_handler(void) void *data; NUTS_PASS(nng_http_handler_alloc(&h, "/post", httpecho)); - NUTS_PASS(nng_http_handler_set_method(h, "POST")); + nng_http_handler_set_method(h, "POST"); server_setup(&st, h); |
