Skip to content

Commit

Permalink
Merge pull request #557 from wilmarvh/master
Browse files Browse the repository at this point in the history
Add headers option on Http download strategy
  • Loading branch information
dnkoutso authored Jul 11, 2019
2 parents 5bbd145 + 78d49d4 commit 1f783ab
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,11 @@
[Samuel Giddins](https://github.com/segiddins)
[#520](https://github.com/CocoaPods/Core/pull/520)

* Add `:headers` option to allow passing in custom headers to `cURL` when downloading source via the `:http` download strategy.
[Wilmar van Heerden](https://github.com/wilmarvh)
[cocoapods-downloader#89](https://github.com/CocoaPods/cocoapods-downloader/issues/89)
[#557](https://github.com/CocoaPods/Core/pull/557)

##### Bug Fixes

* Emit an error when a Podspec has an incorrect type for the `source` attribute
Expand Down
2 changes: 1 addition & 1 deletion lib/cocoapods-core/specification/dsl.rb
Original file line number Diff line number Diff line change
Expand Up @@ -305,7 +305,7 @@ module DSL
:git => [:tag, :branch, :commit, :submodules].freeze,
:svn => [:folder, :tag, :revision].freeze,
:hg => [:revision].freeze,
:http => [:flatten, :type, :sha256, :sha1].freeze,
:http => [:flatten, :type, :sha256, :sha1, :headers].freeze,
}.freeze

# @!method source=(source)
Expand Down

0 comments on commit 1f783ab

Please sign in to comment.