diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/supplemental/http/http_msg.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/supplemental/http/http_msg.c b/src/supplemental/http/http_msg.c index bcf6fc8e..9f5996ca 100644 --- a/src/supplemental/http/http_msg.c +++ b/src/supplemental/http/http_msg.c @@ -1,5 +1,5 @@ // -// Copyright 2018 Staysail Systems, Inc. <info@staysail.tech> +// Copyright 2019 Staysail Systems, Inc. <info@staysail.tech> // Copyright 2018 Capitar IT Group BV <info@capitar.com> // // This software is supplied under the terms of the MIT License, a @@ -118,7 +118,7 @@ nni_http_res_reset(nni_http_res *res) nni_strfree(res->vers); res->vers = NULL; res->rsn = NULL; - res->code = 0; + res->code = NNG_HTTP_STATUS_OK; res->parsed = false; nni_free(res->buf, res->bufsz); res->buf = NULL; @@ -655,7 +655,7 @@ nni_http_res_alloc(nni_http_res **resp) res->data.own = false; res->vers = NULL; res->rsn = NULL; - res->code = 0; + res->code = NNG_HTTP_STATUS_OK; *resp = res; return (0); } |
