lib/exvo_auth/strategies/non_interactive.rb in exvo-auth-0.2.0 vs lib/exvo_auth/strategies/non_interactive.rb in exvo-auth-0.2.1
- old
+ new
@@ -17,8 +17,12 @@
super
end
end
def fail!(message_key)
- [401, { "Content-Type" => "application/json" }, [MultiJson.encode(:message => "Not signed in!", :status => 401)]]
+ body = MultiJson.encode(:error => "Please sign in!")
+ [401, {
+ "Content-Type" => "application/json",
+ "Content-Length" => body.length.to_s
+ }, [body]]
end
end