Skip to content

Commit

Permalink
fix backpack API wrapper (YAML seems to be no longer supported when p…
Browse files Browse the repository at this point in the history
…osting data)
  • Loading branch information
mkdynamic committed Oct 28, 2010
1 parent 29505ec commit f2d6170
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/backpack.rb
Expand Up @@ -32,8 +32,8 @@ def page_id=(id)
def request(path, parameters = {}, second_try = false)
parameters = { "token" => @token }.merge(parameters)

response = @connection.post("/ws/#{path}", parameters.to_yaml,
"X-POST_DATA_FORMAT" => "yaml")
response = @connection.post("/ws/#{path}", parameters.to_json,
"Content-Type" => "application/json")

if response.code == "200"
result = XmlSimple.xml_in(response.body)
Expand Down

0 comments on commit f2d6170

Please sign in to comment.