Skip to content

Commit 47649aa

Browse files
authored
Handle wss rewrite on https (#1303)
1 parent ac52c51 commit 47649aa

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

lib/plug/rewrite_on.ex

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,9 @@ defmodule Plug.RewriteOn do
102102
defp put_scheme(conn, ["https"]),
103103
do: %{conn | scheme: :https}
104104

105+
defp put_scheme(conn, ["wss"]),
106+
do: %{conn | scheme: :https}
107+
105108
defp put_scheme(%{scheme: :https, port: 443} = conn, ["http"]),
106109
do: %{conn | scheme: :http, port: 80}
107110

0 commit comments

Comments
 (0)