set Content-Type. #108

Closed
wants to merge 1 commit into
from
Jump to file
+1 −0
Split
View
@@ -138,6 +138,7 @@ def write(files, private_gist = false, description = nil)
http.ca_file = ca_cert
req = Net::HTTP::Post.new(url.path)
+ req.set_content_type("application/json")
req.body = JSON.generate(data(files, private_gist, description))
user, password = auth()