Skip to content

Commit 9a5c2b0

Browse files
committed
Fix for Gleam compiler main branch
1 parent 318805c commit 9a5c2b0

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/gleam/http.gleam

+6-6
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ import gleam/bit_string
1414
import gleam/dynamic.{Dynamic}
1515
import gleam/int
1616
import gleam/list
17-
import gleam/option.{None, Option, Some}
17+
import gleam/option.{Option, Some}
1818
import gleam/regex
1919
import gleam/result
2020
import gleam/string
@@ -148,12 +148,12 @@ pub type Service(in, out) =
148148
pub fn req_to_uri(request: Request(a)) -> Uri {
149149
Uri(
150150
scheme: Some(scheme_to_string(request.scheme)),
151-
userinfo: None,
151+
userinfo: option.None,
152152
host: Some(request.host),
153153
port: request.port,
154154
path: request.path,
155155
query: request.query,
156-
fragment: None,
156+
fragment: option.None,
157157
)
158158
}
159159

@@ -203,7 +203,7 @@ pub fn get_query(
203203
) -> Result(List(tuple(String, String)), Nil) {
204204
case request.query {
205205
Some(query_string) -> uri.parse_query(query_string)
206-
None -> Ok([])
206+
option.None -> Ok([])
207207
}
208208
}
209209

@@ -368,9 +368,9 @@ pub fn default_req() -> Request(BitString) {
368368
body: <<>>,
369369
scheme: Https,
370370
host: "localhost",
371-
port: None,
371+
port: option.None,
372372
path: "",
373-
query: None,
373+
query: option.None,
374374
)
375375
}
376376

0 commit comments

Comments
 (0)