Skip to content

Commit bfd930a

Browse files
committed
Update examples/demo_plug.exs
1 parent 478a6ef commit bfd930a

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

examples/demo_plug.exs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,10 @@
11
#!/usr/bin/env elixir
22
Mix.install([
3-
{:phoenix_playground, "~> 0.1.0"}
3+
{:phoenix_playground, "~> 0.1.2"}
44
])
55

66
PhoenixPlayground.start(
77
plug: fn conn ->
8-
conn
9-
|> Plug.Conn.put_resp_content_type("text/html")
10-
|> Plug.Conn.send_resp(200, "Hello!")
8+
Plug.Conn.send_resp(conn, 200, "Hello!")
119
end
1210
)

0 commit comments

Comments
 (0)