Skip to content

Commit

Permalink
Rewrite multipart parser in Swift
Browse files Browse the repository at this point in the history
This also fixes an existing parsing bug where a nested multipart body
would see its boundaries stripped of the "\r\n--" prefix.
  • Loading branch information
siemensikkema committed Mar 18, 2021
1 parent 73706f1 commit 80fe8c9
Show file tree
Hide file tree
Showing 3 changed files with 216 additions and 153 deletions.
2 changes: 0 additions & 2 deletions Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,9 @@ let package = Package(
.package(url: "https://github.com/apple/swift-nio.git", from: "2.2.0"),
],
targets: [
.target(name: "CMultipartParser"),
.target(name: "MultipartKit", dependencies: [
.product(name: "NIO", package: "swift-nio"),
.product(name: "NIOHTTP1", package: "swift-nio"),
.target(name: "CMultipartParser"),
]),
.testTarget(name: "MultipartKitTests", dependencies: ["MultipartKit"]),
]
Expand Down
Loading

0 comments on commit 80fe8c9

Please sign in to comment.