Skip to content

Commit df608f4

Browse files
committedMar 20, 2023
[MULTIPART] fix type checking
1 parent 4506394 commit df608f4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎Sources/SimpleHTTP/MultipartForm/MultipartFormData.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ struct BodyPart {
6161
}
6262

6363
init(headers: [Header], url: URL, length: Int) {
64-
let stream = {
64+
let stream: () throws -> InputStream = {
6565
guard let stream = InputStream(url: url) else {
6666
throw MultipartFormData.Error.inputStreamCreationFailed(url)
6767
}

0 commit comments

Comments
 (0)