[Asterisk-code-review] res ari: fix issue reported by zuul (asterisk[13])
Torrey Searle
asteriskteam at digium.com
Wed Aug 17 09:54:22 CDT 2016
Torrey Searle has uploaded a new change for review.
https://gerrit.asterisk.org/3589
Change subject: res_ari: fix issue reported by zuul
......................................................................
res_ari: fix issue reported by zuul
Change-Id: Ica56ec84ae99a551bc2db2da0a60c924b675e32f
---
M res/res_ari.c
1 file changed, 3 insertions(+), 3 deletions(-)
git pull ssh://gerrit.asterisk.org:29418/asterisk refs/changes/89/3589/1
diff --git a/res/res_ari.c b/res/res_ari.c
index 7b31358..4ff98ce 100644
--- a/res/res_ari.c
+++ b/res/res_ari.c
@@ -694,10 +694,10 @@
obj, "basePath",
ast_json_stringf("http://%s/ari", host->value));
}
+ } else {
+ /* Without the host, we don't have the basePath */
+ ast_json_object_del(obj, "basePath");
}
- } else {
- /* Without the host, we don't have the basePath */
- ast_json_object_del(obj, "basePath");
}
ast_ari_response_ok(response, obj);
--
To view, visit https://gerrit.asterisk.org/3589
To unsubscribe, visit https://gerrit.asterisk.org/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: Ica56ec84ae99a551bc2db2da0a60c924b675e32f
Gerrit-PatchSet: 1
Gerrit-Project: asterisk
Gerrit-Branch: 13
Gerrit-Owner: Torrey Searle <tsearle at gmail.com>
More information about the asterisk-code-review
mailing list