From bd207a07570567a2bc7dc4e85dfd1c5f2807a0ac Mon Sep 17 00:00:00 2001 From: Tanner Nelson Date: Mon, 6 Mar 2017 14:46:10 +0100 Subject: [PATCH 1/2] off by one fix --- Package.pins | 54 ++++++++++++++++++++++++++++++++++ Sources/Multipart/Parser.swift | 5 ++-- 2 files changed, 57 insertions(+), 2 deletions(-) create mode 100644 Package.pins diff --git a/Package.pins b/Package.pins new file mode 100644 index 00000000..5e4b4d0a --- /dev/null +++ b/Package.pins @@ -0,0 +1,54 @@ +{ + "autoPin": true, + "pins": [ + { + "package": "Bits", + "reason": null, + "repositoryURL": "https://github.com/vapor/bits.git", + "version": "0.1.2" + }, + { + "package": "CLibreSSL", + "reason": null, + "repositoryURL": "https://github.com/vapor/clibressl.git", + "version": "1.0.0" + }, + { + "package": "Core", + "reason": null, + "repositoryURL": "https://github.com/vapor/core.git", + "version": "2.0.0-alpha.3" + }, + { + "package": "Crypto", + "reason": null, + "repositoryURL": "https://github.com/vapor/crypto.git", + "version": "2.0.0-alpha.2" + }, + { + "package": "Debugging", + "reason": null, + "repositoryURL": "https://github.com/vapor/debugging.git", + "version": "0.1.0" + }, + { + "package": "Engine", + "reason": null, + "repositoryURL": "https://github.com/vapor/engine.git", + "version": "2.0.0-alpha.1" + }, + { + "package": "Socks", + "reason": null, + "repositoryURL": "https://github.com/vapor/socks.git", + "version": "1.2.7" + }, + { + "package": "TLS", + "reason": null, + "repositoryURL": "https://github.com/vapor/tls.git", + "version": "2.0.0-alpha.1" + } + ], + "version": 1 +} \ No newline at end of file diff --git a/Sources/Multipart/Parser.swift b/Sources/Multipart/Parser.swift index 2ddbd708..fb6cbec8 100644 --- a/Sources/Multipart/Parser.swift +++ b/Sources/Multipart/Parser.swift @@ -231,8 +231,9 @@ public final class Parser { let raw = Array(buffer[0.. buffer.count { buffer = [] } else { From 3262755b8d52424a520319d1991509c2a1b7e686 Mon Sep 17 00:00:00 2001 From: Tanner Nelson Date: Mon, 6 Mar 2017 14:46:33 +0100 Subject: [PATCH 2/2] =?UTF-8?q?=F0=9F=98=A4=F0=9F=98=A4=F0=9F=98=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Package.pins | 54 ---------------------------------------------------- 1 file changed, 54 deletions(-) delete mode 100644 Package.pins diff --git a/Package.pins b/Package.pins deleted file mode 100644 index 5e4b4d0a..00000000 --- a/Package.pins +++ /dev/null @@ -1,54 +0,0 @@ -{ - "autoPin": true, - "pins": [ - { - "package": "Bits", - "reason": null, - "repositoryURL": "https://github.com/vapor/bits.git", - "version": "0.1.2" - }, - { - "package": "CLibreSSL", - "reason": null, - "repositoryURL": "https://github.com/vapor/clibressl.git", - "version": "1.0.0" - }, - { - "package": "Core", - "reason": null, - "repositoryURL": "https://github.com/vapor/core.git", - "version": "2.0.0-alpha.3" - }, - { - "package": "Crypto", - "reason": null, - "repositoryURL": "https://github.com/vapor/crypto.git", - "version": "2.0.0-alpha.2" - }, - { - "package": "Debugging", - "reason": null, - "repositoryURL": "https://github.com/vapor/debugging.git", - "version": "0.1.0" - }, - { - "package": "Engine", - "reason": null, - "repositoryURL": "https://github.com/vapor/engine.git", - "version": "2.0.0-alpha.1" - }, - { - "package": "Socks", - "reason": null, - "repositoryURL": "https://github.com/vapor/socks.git", - "version": "1.2.7" - }, - { - "package": "TLS", - "reason": null, - "repositoryURL": "https://github.com/vapor/tls.git", - "version": "2.0.0-alpha.1" - } - ], - "version": 1 -} \ No newline at end of file