mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-18 07:48:14 +00:00
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 6f448f32fe)
This commit is contained in:
committed by
Joshua Colp
parent
2b057d6215
commit
c1b6a79686
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user