Просмотр исходного кода

Cowboy 2.6.2

Updates Cowlib to 2.7.2.
Loïc Hoguin 6 лет назад
Родитель
Сommit
d5489b4c73
5 измененных файлов с 28 добавлено и 5 удалено
  1. 2 2
      Makefile
  2. 1 1
      doc/src/guide/getting_started.asciidoc
  3. 23 0
      doc/src/guide/migrating_from_2.6.asciidoc
  4. 1 1
      ebin/cowboy.app
  5. 1 1
      rebar.config

+ 2 - 2
Makefile

@@ -2,7 +2,7 @@
 
 PROJECT = cowboy
 PROJECT_DESCRIPTION = Small, fast, modern HTTP server.
-PROJECT_VERSION = 2.6.1
+PROJECT_VERSION = 2.6.2
 PROJECT_REGISTERED = cowboy_clock
 
 # Options.
@@ -15,7 +15,7 @@ CT_OPTS += -ct_hooks cowboy_ct_hook [] # -boot start_sasl
 LOCAL_DEPS = crypto
 
 DEPS = cowlib ranch
-dep_cowlib = git https://github.com/ninenines/cowlib master
+dep_cowlib = git https://github.com/ninenines/cowlib 2.7.2
 dep_ranch = git https://github.com/ninenines/ranch 1.7.1
 
 DOC_DEPS = asciideck

+ 1 - 1
doc/src/guide/getting_started.asciidoc

@@ -69,7 +69,7 @@ fetch and compile Cowboy:
 PROJECT = hello_erlang
 
 DEPS = cowboy
-dep_cowboy_commit = 2.6.1
+dep_cowboy_commit = 2.6.2
 
 DEP_PLUGINS = cowboy
 

+ 23 - 0
doc/src/guide/migrating_from_2.6.asciidoc

@@ -3,6 +3,29 @@
 
 The following patch versions were released since Cowboy 2.6:
 
+=== Cowboy 2.6.2
+
+This release updates Cowlib to 2.7.2.
+
+A bug in the HTTP/2 code that resulted in the failure to
+fully send iolist response bodies has been fixed. Cowboy
+would just wait indefinitely in those cases.
+
+Cowboy will now use the host header when the HTTP/2
+:authority pseudo header is missing. A common scenario
+where this occurs is when proxies translate incoming
+HTTP/1.1 requests to HTTP/2.
+
+The `cowboy_static` handler will now properly detect
+the type of files that have an uppercase or mixed
+extension component.
+
+A bug where the stacktrace was incorrect in error messages
+has been fixed. The problem occurred when an exception
+occurred in the handler's terminate callback.
+
+Minor documentation fixes.
+
 === Cowboy 2.6.1
 
 This release updates Ranch to 1.7.1.

+ 1 - 1
ebin/cowboy.app

@@ -1,6 +1,6 @@
 {application, 'cowboy', [
 	{description, "Small, fast, modern HTTP server."},
-	{vsn, "2.6.1"},
+	{vsn, "2.6.2"},
 	{modules, ['cowboy','cowboy_app','cowboy_bstr','cowboy_children','cowboy_clear','cowboy_clock','cowboy_compress_h','cowboy_constraints','cowboy_handler','cowboy_http','cowboy_http2','cowboy_loop','cowboy_metrics_h','cowboy_middleware','cowboy_req','cowboy_rest','cowboy_router','cowboy_static','cowboy_stream','cowboy_stream_h','cowboy_sub_protocol','cowboy_sup','cowboy_tls','cowboy_tracer_h','cowboy_websocket']},
 	{registered, [cowboy_sup,cowboy_clock]},
 	{applications, [kernel,stdlib,crypto,cowlib,ranch]},

+ 1 - 1
rebar.config

@@ -1,4 +1,4 @@
 {deps, [
-{cowlib,".*",{git,"https://github.com/ninenines/cowlib","2.7.0"}},{ranch,".*",{git,"https://github.com/ninenines/ranch","1.7.1"}}
+{cowlib,".*",{git,"https://github.com/ninenines/cowlib","2.7.2"}},{ranch,".*",{git,"https://github.com/ninenines/ranch","1.7.1"}}
 ]}.
 {erl_opts, [debug_info,warn_export_vars,warn_shadow_vars,warn_obsolete_guard,warn_missing_spec,warn_untyped_record]}.