Skip to content

Commit

Permalink
chore: inferred_content_type default is empty string if no match
Browse files Browse the repository at this point in the history
  • Loading branch information
YOU54F committed May 29, 2024
1 parent 758b81c commit 6094477
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rust/pact_matching/src/binary_utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ where

// Where we have detected text/plain, check content type against our own detection from bytes
let detected_content_type: &str = {
if inferred_match {
if inferred_content_type != "" {
inferred_content_type
} else {
magic_content_type
Expand Down

0 comments on commit 6094477

Please sign in to comment.