File tree 2 files changed +5
-5
lines changed
2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -3,14 +3,14 @@ version = "2.0.2"
3
3
4
4
description = " A CORS Builder, performing validation and injection of CORS for misp, wisp and any framework!"
5
5
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" }
8
8
9
9
[dependencies ]
10
10
gleam_http = " >= 3.6.0 and < 4.0.0"
11
11
gleam_stdlib = " >= 0.34.0 and < 2.0.0"
12
12
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"
14
14
15
15
[dev-dependencies ]
16
16
gleam_erlang = " >= 0.25.0 and < 1.0.0"
Original file line number Diff line number Diff line change 49
49
//// jumping right in your custom code.
50
50
51
51
import gleam/bool
52
- import gleam/bytes_builder
52
+ import gleam/bytes_tree
53
53
import gleam/function
54
54
import gleam/http . { type Method }
55
55
import gleam/http/request . { type Request }
@@ -378,7 +378,7 @@ pub fn mist_middleware(
378
378
cors : Cors ,
379
379
handler : fn ( Request ( mist . Connection ) ) -> Response ( mist . ResponseData ) ,
380
380
) {
381
- bytes_builder . new ( )
381
+ bytes_tree . new ( )
382
382
|> mist . Bytes ( )
383
383
|> middleware ( req , cors , handler )
384
384
}
You can’t perform that action at this time.
0 commit comments