From 720257b82091f10f0a1b97d33f73ef82cd08b9c0 Mon Sep 17 00:00:00 2001 From: Ondrej Rafaj Date: Wed, 28 Feb 2018 19:19:35 +0000 Subject: [PATCH] fixing stupidly forgotten data --- .../VaporTestTools/Extensions/Requests/HTTPRequest+Make.swift | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Sources/VaporTestTools/Extensions/Requests/HTTPRequest+Make.swift b/Sources/VaporTestTools/Extensions/Requests/HTTPRequest+Make.swift index 4b26b51..1c711b0 100644 --- a/Sources/VaporTestTools/Extensions/Requests/HTTPRequest+Make.swift +++ b/Sources/VaporTestTools/Extensions/Requests/HTTPRequest+Make.swift @@ -17,6 +17,9 @@ extension TestableProperty where TestableType == HTTPRequest { if let headers = headers { req.headers = headers.testable.asHTTPHeaders() } + if let data = data { + req.body = HTTPBody(data) + } return req }