Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Add ffi function pactffi_with_multipart_file_v2 #323

Merged

Conversation

tienvx
Copy link
Contributor

@tienvx tienvx commented Sep 16, 2023

Fix #322

@@ -18,7 +19,7 @@ use tracing::{debug, error, trace, warn};
const CONTENT_TYPE_HEADER: &str = "Content-Type";

lazy_static! {
static ref MULTIPART_MARKER: Regex = Regex::new("\\-\\-(\\w+)\r\n").unwrap();
static ref MULTIPART_MARKER: Regex = Regex::new("\\-\\-([a-zA-Z0-9'\\(\\)+_,-.\\/:=? ]*)\r\n").unwrap();
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@rholshausen rholshausen merged commit 0bbb66e into pact-foundation:master Sep 21, 2023
13 checks passed
@mefellows
Copy link
Member

Love your work Tien!

@tienvx tienvx deleted the ffi-with-multipart-file-v2 branch September 21, 2023 04:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Multipart: boundary should not be random
3 participants