You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
AFMotion::PLIST.get("http://#{@signup_input.text}.uninkd.com/existence.plist") do |result|
if result.success?
ap "Success"
elsif result.failure?
ap "result.failure"
end
end
It's being returned as a failure all the time though, since it's not a "application/x-plist" on the server, but a "text/plist".
How can I set the accepted headers on the request?
The text was updated successfully, but these errors were encountered:
client = AFMotion::Client.build("http://#{@signup_input.text}.uninkd.com/") do
header "Accept", "application/x-plist"
operation :plist
end
client.get("existence") do |result|
if result.success?
ap "Success"
elsif result.failure?
ap "result.failure"
end
end
How would you go about this in afmotion?
I'm querying for a plist like this:
It's being returned as a failure all the time though, since it's not a "application/x-plist" on the server, but a "text/plist".
How can I set the accepted headers on the request?
The text was updated successfully, but these errors were encountered: