Skip to content

Commit d004567

Browse files
mergify[bot]Loïc Hoguin
and
Loïc Hoguin
authored
Update Cowlib to 2.12.1 (backport #7806) (#7824)
* Update Cowlib to 2.12.1 This fixes a compilation error with OTP-26. (cherry picked from commit 31a8418) * Fix parsing of cookie header in test suite (cherry picked from commit 1595727) --------- Co-authored-by: Loïc Hoguin <[email protected]>
1 parent c0d22bf commit d004567

File tree

3 files changed

+4
-5
lines changed

3 files changed

+4
-5
lines changed

MODULE.bazel

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -157,8 +157,8 @@ erlang_package.hex_package(
157157
erlang_package.hex_package(
158158
name = "cowlib",
159159
build_file = "@rabbitmq-server//bazel:BUILD.cowlib",
160-
sha256 = "e4175dc240a70d996156160891e1c62238ede1729e45740bdd38064dad476170",
161-
version = "2.9.1",
160+
sha256 = "163b73f6367a7341b33c794c4e88e7dbfe6498ac42dcd69ef44c5bc5507c8db0",
161+
version = "2.12.1",
162162
)
163163

164164
erlang_package.hex_package(

deps/rabbitmq_management/test/rabbit_mgmt_http_SUITE.erl

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3429,8 +3429,7 @@ login_test(Config) ->
34293429
?assertEqual(200, CodeAct),
34303430

34313431
%% Extract the authorization header
3432-
[Cookie, _Version] = binary:split(list_to_binary(proplists:get_value("set-cookie", Headers)),
3433-
<<";">>, [global]),
3432+
Cookie = list_to_binary(proplists:get_value("set-cookie", Headers)),
34343433
[_, Auth] = binary:split(Cookie, <<"=">>, []),
34353434

34363435
%% Request the overview with the auth obtained

rabbitmq-components.mk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ dep_toke = git_rmq toke $(current_rmq_ref
112112

113113
dep_accept = hex 0.3.5
114114
dep_cowboy = hex 2.8.0
115-
dep_cowlib = hex 2.9.1
115+
dep_cowlib = hex 2.12.1
116116
dep_looking_glass = git https://github.com/rabbitmq/looking_glass.git master
117117
dep_prometheus = hex 4.10.0
118118
dep_ra = hex 2.5.0

0 commit comments

Comments
 (0)