Skip to content

Commit

Permalink
Format!
Browse files Browse the repository at this point in the history
  • Loading branch information
lpil committed Apr 17, 2024
1 parent f232f8c commit 51d7b33
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 12 deletions.
9 changes: 4 additions & 5 deletions src/gleam/http/cookie.gleam
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import gleam/result
import gleam/http.{type Scheme}
import gleam/int
import gleam/list
import gleam/option.{type Option, Some}
import gleam/regex
import gleam/result
import gleam/string
import gleam/option.{type Option, Some}
import gleam/http.{type Scheme}

/// Policy options for the SameSite cookie attribute
///
Expand Down Expand Up @@ -43,8 +43,7 @@ pub fn defaults(scheme: Scheme) {
max_age: option.None,
domain: option.None,
path: option.Some("/"),
secure: scheme
== http.Https,
secure: scheme == http.Https,
http_only: True,
same_site: Some(Lax),
)
Expand Down
4 changes: 2 additions & 2 deletions test/gleam/http/multipart_test.gleam
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import gleeunit/should
import gleam/bit_array
import gleam/list
import gleam/http.{
MoreRequiredForBody, MoreRequiredForHeaders, MultipartBody, MultipartHeaders,
}
import gleam/list
import gleeunit/should

pub fn parse_multipart_headers_1_test() {
let input = <<
Expand Down
6 changes: 3 additions & 3 deletions test/gleam/http/request_test.gleam
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import gleam/option.{None, Some}
import gleam/uri.{Uri}
import gleam/string
import gleam/http.{Https}
import gleam/http/request.{type Request, Request}
import gleam/option.{None, Some}
import gleam/string
import gleam/uri.{Uri}
import gleeunit/should

pub fn req_to_uri_test() {
Expand Down
4 changes: 2 additions & 2 deletions test/gleam/http/response_test.gleam
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import gleam/http.{Http}
import gleam/http/response.{Response}
import gleam/http/cookie
import gleam/string
import gleam/http/response.{Response}
import gleam/option.{None, Some}
import gleam/string
import gleeunit/should

pub fn redirect_test() {
Expand Down

0 comments on commit 51d7b33

Please sign in to comment.