Skip to content

Commit 690c634

Browse files
committed
Merge pull request reem#17 from tarcieri/fix-get-equiv
Update phf::map find_equiv -> get_equiv (fixes reem#16)
2 parents 096be5c + 5a9d7c0 commit 690c634

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lib.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ struct RawMediaType {
3232

3333
/// Get the rust-http MediaType associated with this extension.
3434
pub fn get_content_type(ext: &str) -> Option<MediaType> {
35-
MIMES.find_equiv(ext)
35+
MIMES.get_equiv(ext)
3636
.map(to_media_type)
3737
}
3838

0 commit comments

Comments
 (0)