1
0
mirror of https://github.com/seejohnrun/haste-client.git synced 2025-12-12 14:55:56 +00:00

Merge pull request #27 from vaibhav92/master

Fix issue #26
This commit is contained in:
John Crepezzi
2017-07-19 17:13:43 -04:00
committed by GitHub

View File

@@ -1,5 +1,6 @@
require 'json'
require 'faraday'
require 'uri'
module Haste
@@ -41,7 +42,9 @@ module Haste
private
def do_post(data)
connection.post('/documents', data)
posturi= URI.parse(server_url)
posturi.path += '/documents'
connection.post(posturi.path, data)
end
def connection