mirror of
https://github.com/seejohnrun/haste-client.git
synced 2025-12-15 16:25:57 +00:00
Fix issue #26
This commit is contained in:
@@ -1,5 +1,6 @@
|
|||||||
require 'json'
|
require 'json'
|
||||||
require 'faraday'
|
require 'faraday'
|
||||||
|
require 'uri'
|
||||||
|
|
||||||
module Haste
|
module Haste
|
||||||
|
|
||||||
@@ -41,7 +42,9 @@ module Haste
|
|||||||
private
|
private
|
||||||
|
|
||||||
def do_post(data)
|
def do_post(data)
|
||||||
connection.post('/documents', data)
|
posturi= URI.parse(server_url)
|
||||||
|
posturi.path += '/documents'
|
||||||
|
connection.post(posturi.path, data)
|
||||||
end
|
end
|
||||||
|
|
||||||
def connection
|
def connection
|
||||||
|
|||||||
Reference in New Issue
Block a user