Skip to content

Commit

Permalink
Fix typos (#1223)
Browse files Browse the repository at this point in the history
  • Loading branch information
franknfjr authored May 20, 2024
1 parent 1ff85b7 commit 4280765
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
2 changes: 1 addition & 1 deletion guides/https.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ The `cacertfile` option is not needed when using a self-signed certificate, or w
keyfile: "/etc/letsencrypt/live/example.net/privkey.pem"
```

It is possible to bundle the certificate files with the application, possibly for packaging into a release. In this case the files must be stored under the application's 'priv' directory. The `otp_app` option must be set to the name of the OTP application that contains the files, in order to correctly resolve the relative paths:
It is possible to bundle the certificate files with the application, possibly for packaging into a release. In this case the files must be stored under the application's 'priv' directory. The `otp_app` option must be set to the name of the OTP application that contains the files, in order to correctly resolve the relative paths:

```elixir
Plug.Cowboy.https MyApp.MyPlug, [],
Expand Down
8 changes: 4 additions & 4 deletions lib/plug/rewrite_on.ex
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@ defmodule Plug.RewriteOn do
The supported values are:
* `:x_forwarded_for` - to override the remote ip based on on the "x-forwarded-for" header
* `:x_forwarded_host` - to override the host based on on the "x-forwarded-host" header
* `:x_forwarded_port` - to override the port based on on the "x-forwarded-port" header
* `:x_forwarded_proto` - to override the protocol based on on the "x-forwarded-proto" header
* `:x_forwarded_for` - to override the remote ip based on the "x-forwarded-for" header
* `:x_forwarded_host` - to override the host based on the "x-forwarded-host" header
* `:x_forwarded_port` - to override the port based on the "x-forwarded-port" header
* `:x_forwarded_proto` - to override the protocol based on the "x-forwarded-proto" header
A tuple representing a Module-Function-Args can also be given as argument
instead of a list.
Expand Down
3 changes: 2 additions & 1 deletion lib/plug/static.ex
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,8 @@ defmodule Plug.Static do
%{
encodings: encodings,
only_rules: {Keyword.get(opts, :only, []), Keyword.get(opts, :only_matching, [])},
qs_cache: Keyword.get(opts, :cache_control_for_vsn_requests, "public, max-age=31536000, immutable"),
qs_cache:
Keyword.get(opts, :cache_control_for_vsn_requests, "public, max-age=31536000, immutable"),
et_cache: Keyword.get(opts, :cache_control_for_etags, "public"),
et_generation: Keyword.get(opts, :etag_generation, nil),
headers: Keyword.get(opts, :headers, %{}),
Expand Down

0 comments on commit 4280765

Please sign in to comment.