diff --git a/confluent/httpapi.py b/confluent/httpapi.py index 89ccb39b..e7232f87 100644 --- a/confluent/httpapi.py +++ b/confluent/httpapi.py @@ -263,8 +263,10 @@ def _assemble_html(responses, resource, querydict, url): if url == '/': pass elif resource[-1] == '/': + iscollection = True yield '../
' else: + iscollection = False yield './
' pendingrsp = [] for rsp in responses: @@ -276,7 +278,8 @@ def _assemble_html(responses, resource, querydict, url): for rsp in pendingrsp: yield rsp.html() yield "
" - yield '' + if not iscollection: + yield '' def _assemble_json(responses, resource, url):