Skip to content

Commit

Permalink
Less strict access to multipart functions to make them available for …
Browse files Browse the repository at this point in the history
…extensions
  • Loading branch information
abdolence committed Jan 27, 2024
1 parent bfa1dfc commit 4978ab4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/multipart_form.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,14 @@ pub struct FileMultipartData<'a> {
pub data: &'a [u8],
}

pub(crate) fn generate_multipart_boundary() -> String {
pub fn generate_multipart_boundary() -> String {
format!(
"----WebKitFormBoundarySlackMorphismRust{}",
chrono::Utc::now().timestamp()
)
}

pub(crate) fn create_multipart_file_content<'p, PT, TS>(
pub fn create_multipart_file_content<'p, PT, TS>(
fields: &'p PT,
multipart_boundary: &str,
file: Option<FileMultipartData<'p>>,
Expand Down

0 comments on commit 4978ab4

Please sign in to comment.