diff options
| author | Tom Harley | 2018-04-23 17:08:42 +0100 |
|---|---|---|
| committer | Tom Harley | 2018-04-23 17:08:42 +0100 |
| commit | e31513c8593ac8855f9a908af01a98cc3d0f9986 (patch) | |
| tree | ad67a637c0761d97f43075c03b852539138635c5 /src/files.ts | |
| parent | Add file ID and creation status to POST request (diff) | |
| download | medicine-e31513c8593ac8855f9a908af01a98cc3d0f9986.tar.gz medicine-e31513c8593ac8855f9a908af01a98cc3d0f9986.zip | |
Prevent rejection due to mis-parsing of start of csv limits
Diffstat (limited to 'src/files.ts')
| -rw-r--r-- | src/files.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/files.ts b/src/files.ts index 72947e9..7b44c63 100644 --- a/src/files.ts +++ b/src/files.ts @@ -96,7 +96,7 @@ const readableStream: ( view?: ViewName ): fs.ReadStream => { const options: object = { - start: offset ? offset : 0, + start: Number(offset ? offset : 0), end: offset && length ? offset + length : undefined }; return fs.createReadStream(path(filename, projectName, view), options); |
