Skip to content

Commit fefd6ed

Browse files
committed
Use consistent naming
1 parent 77187cc commit fefd6ed

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/wisp/simulate.gleam

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ pub fn json_body(request: Request, data: Json) -> Request {
158158
/// Represents a file to be uploaded in a multipart form.
159159
///
160160
pub type FileUpload {
161-
FileUpload(filename: String, content_type: String, content: BitArray)
161+
FileUpload(file_name: String, content_type: String, content: BitArray)
162162
}
163163

164164
/// Add a multipart/form-data body to the request for testing file uploads
@@ -171,7 +171,7 @@ pub type FileUpload {
171171
///
172172
/// ```gleam
173173
/// let file = UploadedFile(
174-
/// filename: "test.txt",
174+
/// file_name: "test.txt",
175175
/// content_type: "text/plain",
176176
/// content: <<"Hello, world!":utf8>>
177177
/// )
@@ -230,7 +230,7 @@ fn build_multipart_body(
230230
"Content-Disposition: form-data; name=\"":utf8,
231231
file.0:utf8,
232232
"\"; filename=\"":utf8,
233-
{ file.1 }.filename:utf8,
233+
{ file.1 }.file_name:utf8,
234234
"\"\r\n":utf8,
235235
"Content-Type: ":utf8,
236236
{ file.1 }.content_type:utf8,

0 commit comments

Comments
 (0)