File tree 3 files changed +8
-10
lines changed
3 files changed +8
-10
lines changed Original file line number Diff line number Diff line change 1
1
# Changelog
2
2
3
+ ## v3.7.1 - 2024-11-19
4
+
5
+ - Fixed warnings on ` gleam_stdlib ` v0.42.0.
6
+
3
7
## v3.7.0 - 2024-09-12
4
8
5
9
- The ` gleam/http/request ` module gains the ` remove_cookie ` function.
Original file line number Diff line number Diff line change 1
1
name = " gleam_http"
2
- version = " 3.7.0 "
2
+ version = " 3.7.1 "
3
3
licences = [" Apache-2.0" ]
4
4
description = " Types and functions for Gleam HTTP clients and servers"
5
5
gleam = " >= 1.0.0"
Original file line number Diff line number Diff line change @@ -4,7 +4,6 @@ import gleam/list
4
4
import gleam/option . { type Option }
5
5
import gleam/result
6
6
import gleam/string
7
- import gleam/string_builder
8
7
import gleam/uri . { type Uri , Uri }
9
8
10
9
/// A HTTP request.
@@ -179,18 +178,13 @@ pub fn set_query(
179
178
query : List ( # ( String , String ) ) ,
180
179
) -> Request ( body) {
181
180
let pair = fn ( t : # ( String , String ) ) {
182
- string_builder . from_strings ( [
183
- uri . percent_encode ( t . 0 ) ,
184
- "=" ,
185
- uri . percent_encode ( t . 1 ) ,
186
- ] )
181
+ uri . percent_encode ( t . 0 ) <> "=" <> uri . percent_encode ( t . 1 )
187
182
}
188
183
let query =
189
184
query
190
185
|> list . map ( pair )
191
- |> list . intersperse ( string_builder . from_string ( "&" ) )
192
- |> string_builder . concat
193
- |> string_builder . to_string
186
+ |> list . intersperse ( "&" )
187
+ |> string . concat
194
188
|> option . Some
195
189
Request ( .. req , query : query )
196
190
}
You can’t perform that action at this time.
0 commit comments