aboutsummaryrefslogtreecommitdiff
path: root/src/supplemental/http/http_msg.c
diff options
context:
space:
mode:
authorGarrett D'Amore <garrett@damore.org>2018-02-02 10:57:18 -0800
committerGarrett D'Amore <garrett@damore.org>2018-02-02 10:57:18 -0800
commit490bc97dbf76fae2a99c8bacd5fd9be332d68b90 (patch)
tree5504c23957e99ef5290c9048fedc27b1dbc25e77 /src/supplemental/http/http_msg.c
parent5e5f814d63d4e00365b0ae726bc18831aa28e88f (diff)
downloadnng-490bc97dbf76fae2a99c8bacd5fd9be332d68b90.tar.gz
nng-490bc97dbf76fae2a99c8bacd5fd9be332d68b90.tar.bz2
nng-490bc97dbf76fae2a99c8bacd5fd9be332d68b90.zip
Add, and document, the url->u_requri member.
This member is the value passed in actual HTTP protocol, so it is useful with the function nng_http_req_set_uri().
Diffstat (limited to 'src/supplemental/http/http_msg.c')
-rw-r--r--src/supplemental/http/http_msg.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/supplemental/http/http_msg.c b/src/supplemental/http/http_msg.c
index 81c1b453..9a5bac68 100644
--- a/src/supplemental/http/http_msg.c
+++ b/src/supplemental/http/http_msg.c
@@ -591,7 +591,7 @@ nni_http_req_alloc(nni_http_req **reqp, const nni_url *url)
if (url != NULL) {
const char *host;
int rv;
- if ((req->uri = nni_strdup(url->u_rawpath)) == NULL) {
+ if ((req->uri = nni_strdup(url->u_requri)) == NULL) {
NNI_FREE_STRUCT(req);
return (NNG_ENOMEM);
}