From 08e3a8f9f9194c1f3cee2e13d99ad39a8228b470 Mon Sep 17 00:00:00 2001 From: Jonathan Guthrie Date: Tue, 27 Jun 2017 11:46:15 -0400 Subject: [PATCH] adding patch --- .gitignore | 1 + Sources/CURLRequestOptions.swift | 1 + 2 files changed, 2 insertions(+) diff --git a/.gitignore b/.gitignore index cbb1790..dcc78aa 100644 --- a/.gitignore +++ b/.gitignore @@ -65,3 +65,4 @@ fastlane/screenshots Packages/ PerfectCURL.xcodeproj/ .DS_Store +Package.pins diff --git a/Sources/CURLRequestOptions.swift b/Sources/CURLRequestOptions.swift index e168b6a..f83b2be 100644 --- a/Sources/CURLRequestOptions.swift +++ b/Sources/CURLRequestOptions.swift @@ -131,6 +131,7 @@ extension CURLRequest.Option { case .post: curl.setOption(CURLOPT_POST, int: 1) case .put: curl.setOption(CURLOPT_PUT, int: 1) case .head: curl.setOption(CURLOPT_NOBODY, int: 1) + case .patch: curl.setOption(CURLOPT_POST, s: "PATCH") case .delete, .trace, .options,