Skip to content

Commit

Permalink
Release v2.6.0
Browse files Browse the repository at this point in the history
  • Loading branch information
josevalim committed Oct 31, 2022
1 parent 8fcf408 commit a20571d
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 3 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# Changelog

## v2.6.0

### Enhancements

* Support websocket upgrades
* Require Plug v1.14+ and Elixir v1.10+

## v2.5.2

### Enhancements
Expand Down
2 changes: 1 addition & 1 deletion config/config.exs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import Config

if config_env() == :test do
if Mix.env() == :test do
config :plug, :statuses, %{
418 => "Totally not a teapot",
998 => "Not An RFC Status Code"
Expand Down
2 changes: 1 addition & 1 deletion lib/plug/cowboy/handler.ex
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ defmodule Plug.Cowboy.Handler do
end

def upgrade(req, env, __MODULE__, {handler, state}, opts) do
:cowboy_websocket.upgrade(req, env, handler, state, opts)
:cowboy_websocket.upgrade(req, env, handler.module_info(:module), state, opts)
end

defp copy_resp_headers(%Plug.Conn{} = conn, req) do
Expand Down
2 changes: 1 addition & 1 deletion mix.exs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ defmodule Plug.Cowboy.MixProject do
use Mix.Project

@source_url "https://github.com/elixir-plug/plug_cowboy"
@version "2.6.0-dev"
@version "2.6.0"
@description "A Plug adapter for Cowboy"

def project do
Expand Down

0 comments on commit a20571d

Please sign in to comment.