Skip to content

Commit 97fb4cd

Browse files
committed
Raise higher bound for mist to 5.0.0
1 parent d89bd34 commit 97fb4cd

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

gleam.toml

+3-3
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,14 @@ version = "2.0.2"
33

44
description = "A CORS Builder, performing validation and injection of CORS for misp, wisp and any framework!"
55
licences = ["MIT"]
6-
links = [{title = "Sponsor", href = "https://github.com/sponsors/ghivert"}]
7-
repository = {type = "github", user = "ghivert", repo = "cors-builder"}
6+
links = [{ title = "Sponsor", href = "https://github.com/sponsors/ghivert" }]
7+
repository = { type = "github", user = "ghivert", repo = "cors-builder" }
88

99
[dependencies]
1010
gleam_http = ">= 3.6.0 and < 4.0.0"
1111
gleam_stdlib = ">= 0.34.0 and < 2.0.0"
1212
wisp = ">= 1.0.0 and < 2.0.0"
13-
mist = ">= 3.0.0 and < 4.0.0"
13+
mist = ">= 3.0.0 and < 5.0.0"
1414

1515
[dev-dependencies]
1616
gleam_erlang = ">= 0.25.0 and < 1.0.0"

src/cors_builder.gleam

+2-2
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@
4949
//// jumping right in your custom code.
5050

5151
import gleam/bool
52-
import gleam/bytes_builder
52+
import gleam/bytes_tree
5353
import gleam/function
5454
import gleam/http.{type Method}
5555
import gleam/http/request.{type Request}
@@ -378,7 +378,7 @@ pub fn mist_middleware(
378378
cors: Cors,
379379
handler: fn(Request(mist.Connection)) -> Response(mist.ResponseData),
380380
) {
381-
bytes_builder.new()
381+
bytes_tree.new()
382382
|> mist.Bytes()
383383
|> middleware(req, cors, handler)
384384
}

0 commit comments

Comments
 (0)