test cases for payload limits

This commit is contained in:
Jörg Breitbart
2019-07-26 17:35:37 +02:00
parent a9b2728c07
commit bffa78585e
6 changed files with 73 additions and 11 deletions
+2 -4
View File
@@ -6,7 +6,8 @@
import { IDisposable } from 'common/Types';
import { IDcsHandler, IParams, ParamsArray, IHandlerCollection, IDcsParser, DcsFallbackHandler } from 'common/parser/Types';
import { utf32ToString } from 'common/input/TextDecoder';
import { Params } from './Params';
import { Params } from 'common/parser/Params';
import { PAYLOAD_LIMIT } from 'common/parser/Constants';
export class DcsParser implements IDcsParser {
@@ -99,9 +100,6 @@ export class DcsParser implements IDcsParser {
}
}
// limit allowed payload for DcsHandlerFactory
const PAYLOAD_LIMIT = 50000000;
/**
* Convenient class to create a DCS handler from a single callback function.
* Note: The payload is currently limited to 50 MB (hardcoded).