X-Git-Url: http://git.squeep.com/?p=squeep-api-dingus;a=blobdiff_plain;f=lib%2Fdingus.js;fp=lib%2Fdingus.js;h=5b4643c6b2e79c641c3604910c0a3397be56da6b;hp=0057685815472ace39dd086957da6a4b6251bbd3;hb=552223cf6566d87e95a49175e80440fbe47a25b9;hpb=4066a9143c532ace5f909e04d777fef5b98c9a6a diff --git a/lib/dingus.js b/lib/dingus.js index 0057685..5b4643c 100644 --- a/lib/dingus.js +++ b/lib/dingus.js @@ -313,16 +313,11 @@ class Dingus { * Parse rawBody as contentType into ctx.parsedBody. * @param {string} contentType * @param {object} ctx - * @param {string|buffer} + * @param {string|buffer} rawBody */ parseBody(contentType, ctx, rawBody) { const _scope = _fileScope('parseBody'); - if (!rawBody) { - // 1.2.4 and earlier expected rawBody on context - rawBody = ctx.rawBody; - } - switch (contentType) { case Enum.ContentType.ApplicationForm: ctx.parsedBody = this.querystring.parse(rawBody);