lib/restfulie/client/feature/conneg_when_unaccepted.rb in restfulie-1.0.0.beta5 vs lib/restfulie/client/feature/conneg_when_unaccepted.rb in restfulie-1.0.0

- old
+ new

@@ -9,10 +9,10 @@ module Restfulie::Client::Feature class ConnegWhenUnaccepted def execute(chain, request, env) resp = chain.continue(request, env) - return resp if resp.code.to_i!=406 + return resp if resp.code!=406 accept = Medie.registry.for(resp.headers["Accept"]) return resp if accept.nil? request.with("Content-type", accept) \ No newline at end of file