Skip to content

Commit 63f1236

Browse files
authored
Explicitly document http_only default value (#1282)
1 parent 2e2494c commit 63f1236

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/plug/conn.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1656,7 +1656,7 @@ defmodule Plug.Conn do
16561656
option will set both the _max-age_ and _expires_ cookie attributes. Unset
16571657
by default, which means the browser will default to a [session cookie](https://developer.mozilla.org/en-US/docs/Web/HTTP/Cookies#define_the_lifetime_of_a_cookie).
16581658
* `:path` - the path the cookie applies to
1659-
* `:http_only` - when `false`, the cookie is accessible beyond HTTP
1659+
* `:http_only` - when `false`, the cookie is accessible beyond HTTP. Defaults to `true`
16601660
* `:secure` - if the cookie must be sent only over https. Defaults
16611661
to true when the connection is HTTPS
16621662
* `:extra` - string to append to cookie. Use this to take advantage of

0 commit comments

Comments
 (0)