From af083000504e2cc755e0a734ae1503c3f548e9ab Mon Sep 17 00:00:00 2001 From: Sebastian Wilzbach Date: Mon, 22 Jan 2018 19:55:36 +0100 Subject: [PATCH 1/2] Bump DUB versions --- dub.selections.json | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/dub.selections.json b/dub.selections.json index 924ba375..dd06f13e 100644 --- a/dub.selections.json +++ b/dub.selections.json @@ -5,18 +5,18 @@ "botan-math": "1.0.3", "dfmt": "0.5.0", "diet-ng": "1.4.3", - "dyaml": "0.6.3", + "dyaml": "0.6.4", "eventcore": "0.8.27", "libasync": "0.8.3", "libdparse": "0.7.1", "libevent": "2.0.2+2.0.16", "memutils": "0.4.9", "mustache-d": "0.1.3", - "mustache-d-dlang-tour": "0.1.2", "openssl": "1.1.6+1.0.1g", - "taggedalgebraic": "0.10.8", + "stdx-allocator": "2.77.0", + "taggedalgebraic": "0.10.9", "tinyendian": "0.1.2", - "vibe-core": "1.3.0", + "vibe-core": "1.4.0-alpha.1", "vibe-d": "0.8.2" } } From 35b027c4d20a166359432b6c28b3f3e4388c90e0 Mon Sep 17 00:00:00 2001 From: Sebastian Wilzbach Date: Mon, 22 Jan 2018 19:56:02 +0100 Subject: [PATCH 2/2] Remove workaround to read the json manually --- source/app.d | 4 ---- 1 file changed, 4 deletions(-) diff --git a/source/app.d b/source/app.d index a802ae53..ddff94e8 100644 --- a/source/app.d +++ b/source/app.d @@ -186,11 +186,7 @@ shared static this() // parse json sent via text/plain to avoid an additional preflight OPTIONS request // https://developer.mozilla.org/en-US/docs/Web/HTTP/Access_control_CORS#Preflighted_requests if (req.contentType == "text/plain") - { req.contentType = "application/json; charset=UTF-8"; - auto bodyStr = req.bodyReader.readAllUTF8; - if (!bodyStr.empty) req.json = parseJson(bodyStr); - } } urlRouter