Skip to content

Commit

Permalink
Merge pull request #1760 from radar/put-req-header-docs
Browse files Browse the repository at this point in the history
Use put_req_header correctly in recycle documentation
  • Loading branch information
Gazler committed Jun 19, 2016
2 parents 7e490ea + 7b45237 commit 1a27891
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/phoenix/test/conn_test.ex
Expand Up @@ -85,8 +85,7 @@ defmodule Phoenix.ConnTest do
conn = post conn, "/login"
# We can also recycle manually in case we want custom headers
conn = recycle(conn)
conn = put_req_header("x-special", "nice")
conn |> recycle() |> put_req_header("x-special", "nice")
# No recycling as we did it explicitly
conn = delete conn, "/logout"
Expand Down

0 comments on commit 1a27891

Please sign in to comment.