L
L
lavezzi12015-08-10 07:51:32
Computer networks
lavezzi1, 2015-08-10 07:51:32

Completed 302 Found is this normal?

Hello. Such a question, is everything in order in the log which is below? I'm talking about Completed 302 Found in 91ms (ActiveRecord: 0.6ms) . Is that how it should be after the redirect? It's not a mistake?

Started PUT "/users" for 127.0.0.1 at 2015-08-10 12:45:13 +0800
Processing by CustomControllers::RegistrationsController#update as HTML
  Parameters: {"utf8"=>"✓", "authenticity_token"=>"6VU+/tWLO0wPtnWi5d9dLND+L5J4LWD3NXtf/x465ycalVA5HXtv2RWwSbm6iXTIaEO1LOUF7WR5gBo8ffGXAw==", "user"=>{"first_name"=>"Slava", "last_name"=>"Andreev", "email"=>"[email protected]", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]", "current_password"=>"[FILTERED]"}, "commit"=>"Update"}
  User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = ?  ORDER BY "users"."id" ASC LIMIT 1  
  User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1  
   (0.1ms)  begin transaction
   (0.1ms)  commit transaction
Redirected to http://localhost:3000/users/1
Completed 302 Found in 91ms (ActiveRecord: 0.6ms)


Started GET "/users/1" for 127.0.0.1 at 2015-08-10 12:45:13 +0800
Processing by UsersController#show as HTML
  Parameters: {"id"=>"1"}
  User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = ?  ORDER BY "users"."id" ASC LIMIT 1  
  User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1  
  CACHE (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1  
  Rendered users/show.html.haml within layouts/application (0.4ms)
Completed 200 OK in 72ms (Views: 69.5ms | ActiveRecord: 0.2ms)

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexey Ukolov, 2015-08-10
@lavezzi1

Perfectly normal, this is the redirect status .
You contacted /users , the server responded with a 302 status and sent you to /users/1 , and there it already returned the 200 status.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question