diff options
author | Torrey Searle <torrey@voxbone.com> | 2016-08-17 15:10:54 +0200 |
---|---|---|
committer | Joshua Colp <jcolp@digium.com> | 2016-08-19 16:58:55 -0500 |
commit | c1b6a796865d11006634f39c765eb12a4bfb556d (patch) | |
tree | e57befba090cb6a81d9e506a68d0829536aa8ca2 /main/http.c | |
parent | 2b057d62157cd06e52704a7d91bcbb5990d66e8f (diff) |
res_ari: Add http prefix to generated docs
updated the uri handler to include the url prefix of the http server
this enables res_ari to add it to the uris when generating docs
Change-Id: I279335a2625261a8492206c37219698f42591c2e
(cherry picked from commit 6f448f32fe9b7379e2630fab7b06205f901f2ded)
Diffstat (limited to 'main/http.c')
-rw-r--r-- | main/http.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/main/http.c b/main/http.c index bc23e6e56..da564da20 100644 --- a/main/http.c +++ b/main/http.c @@ -671,6 +671,8 @@ int ast_http_uri_link(struct ast_http_uri *urih) AST_RWLIST_WRLOCK(&uris); + urih->prefix = prefix; + if ( AST_RWLIST_EMPTY(&uris) || strlen(AST_RWLIST_FIRST(&uris)->uri) <= len ) { AST_RWLIST_INSERT_HEAD(&uris, urih, entry); AST_RWLIST_UNLOCK(&uris); |