Skip to content
This repository has been archived by the owner on Feb 8, 2022. It is now read-only.

restrict size of data being returned #130

Open
afeld opened this issue Oct 3, 2018 · 0 comments
Open

restrict size of data being returned #130

afeld opened this issue Oct 3, 2018 · 0 comments

Comments

@afeld
Copy link
Owner

afeld commented Oct 3, 2018

Outbound bandwidth is expensive - need to put a cap on what's returned. The check will probably need to go right in here:

jsonp/server/router.js

Lines 61 to 70 in cbd2297

promise
.then(function(response) {
let responseHeaders = passBackHeaders(response.headers);
res.set(responseHeaders);
return {
status: response.statusCode,
body: response.body
};
})

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant