From 0efbacf611a973993cdbea2ed26f6626d4f1c8b1 Mon Sep 17 00:00:00 2001 From: konomae Date: Sat, 18 Aug 2018 00:25:18 +0900 Subject: [PATCH] Fix exception when sending actual request (Fix #250) --- .../BodyParameters/MultipartFormDataBodyParameters.swift | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Sources/APIKit/BodyParameters/MultipartFormDataBodyParameters.swift b/Sources/APIKit/BodyParameters/MultipartFormDataBodyParameters.swift index 5282df3e..9180bdb1 100644 --- a/Sources/APIKit/BodyParameters/MultipartFormDataBodyParameters.swift +++ b/Sources/APIKit/BodyParameters/MultipartFormDataBodyParameters.swift @@ -324,5 +324,13 @@ public extension MultipartFormDataBodyParameters { override func remove(from aRunLoop: RunLoop, forMode mode: RunLoopMode) { } + + override func property(forKey key: Stream.PropertyKey) -> Any? { + return nil + } + + override func setProperty(_ property: Any?, forKey key: Stream.PropertyKey) -> Bool { + return false + } } }