Commit 2d069029 authored by Eloy Durán's avatar Eloy Durán

[push] Fix content-type.

parent f4cfab91
...@@ -67,7 +67,7 @@ module Pod ...@@ -67,7 +67,7 @@ module Pod
base_url = 'https://trunk.cocoapods.org/api/v1' base_url = 'https://trunk.cocoapods.org/api/v1'
podspec_files.each do |spec_file| podspec_files.each do |spec_file|
spec = Pod::Specification.from_file(spec_file) spec = Pod::Specification.from_file(spec_file)
REST.post("#{base_url}/pods", spec.to_json, 'Content-Type' => 'text/yaml', 'Authorization' => "Token #{tokens.sample}") REST.post("#{base_url}/pods", spec.to_json, 'Content-Type' => 'application/json; charset=utf-8', 'Authorization' => "Token #{tokens.sample}")
end end
rescue Exception rescue Exception
# Nothing # Nothing
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment