Skip to content

Conversation

Mr0grog
Copy link
Member

@Mr0grog Mr0grog commented Sep 6, 2025

The diffTypesFor() function is intended to allow you to pass in a MediaType object, media type string, or a file extension (e.g. ".pdf"). However, it turns out the file extension is broken (I guess we have pretty much stopped using file extensions since we improved media type support way back when...). This fixes the issue and adds a test.

This bug was originally uncovered by @BeckettFrey in #1095. Thanks! 🙇

The `diffTypesFor()` function is intended to allow you to pass in a MediaType object, media type string, or a file extension (e.g. `".pdf"`). However, it turns out the file extension is broken (I guess we have pretty much stopped using file extensions since we improved media type support way back when...). This fixes the issue and adds a test.

This bug was originally uncovered by @BeckettFrey in #1095.
@Mr0grog Mr0grog merged commit 9c153ff into main Sep 6, 2025
5 checks passed
@Mr0grog Mr0grog deleted the you-might-try-to-get-the-diff-types-for-an-extension-but-you-would-fail branch September 6, 2025 06:44
@github-project-automation github-project-automation bot moved this from Inbox to Done in Web Monitoring Sep 6, 2025
Mr0grog added a commit that referenced this pull request Sep 6, 2025
Mr0grog added a commit to edgi-govdata-archiving/web-monitoring-ops that referenced this pull request Sep 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

1 participant