Add missing flush() on buffered writer.
[netconf.git] / restconf / sal-rest-docgen / src / main / java / org / opendaylight / netconf / sal / rest / doc / impl / ApiDocServiceImpl.java
index f5002e03714f36dce76c32778202972b3a2965b8..7db2161cc008d12421b6951566fe771277e5cef8 100644 (file)
@@ -97,6 +97,7 @@ public class ApiDocServiceImpl implements ApiDocService {
                 writer.writeEndObject();
             }
             writer.writeEndArray();
+            writer.flush();
         } catch (final Exception e) {
             return Response.status(500).entity(e.getMessage()).build();
         }