Add mongo content provider example.

This commit is contained in:
SukantGujar
2019-03-19 15:05:08 +05:30
parent 6262af11e7
commit 6387127659
8 changed files with 198 additions and 4 deletions

View File

@@ -54,6 +54,7 @@ export function createPartialContentHandler(contentProvider: ContentProvider, lo
// Return 206 Partial Content status
logger.debug("Returning partial content for range: ", JSON.stringify(range));
res.status(206);
getStream(range).pipe(res);
return getStream(range).pipe(res);
};
}