Skip to content

Commit

Permalink
Fix stubbex cookie
Browse files Browse the repository at this point in the history
Setting the cookie manually so have to manually add its name.
  • Loading branch information
yawaramin committed Nov 8, 2018
1 parent cf3bbc0 commit 6cecaec
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/stubbex_web/controllers/stub_controller.ex
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ defmodule StubbexWeb.StubController do
)

conn
|> Map.put(:resp_headers, [{"set-cookie", cookie} | headers])
|> Map.put(:resp_headers, [{"set-cookie", "stubbex=" <> cookie} | headers])
|> send_resp(status_code, body)
end

Expand Down
2 changes: 1 addition & 1 deletion mix.exs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ defmodule Stubbex.Mixfile do
def project do
[
app: :stubbex,
version: "1.0.0",
version: "1.0.1",
elixir: "~> 1.4",
elixirc_paths: elixirc_paths(Mix.env()),
compilers: [:phoenix, :gettext] ++ Mix.compilers(),
Expand Down

0 comments on commit 6cecaec

Please sign in to comment.