Status: New
Owner: ----
Labels: Milestone-1.3 Type-Bug
New issue 4921 by
[hidden email]: MIMEDocument class >>
typeFromName: should return a String
http://code.google.com/p/pharo/issues/detail?id=4921As it can be induced from browsing senders, MIMEDocument class >>
typeFromName: should return a String. Instead it returns an array of
strings, which leads to all sorts of problems.
The method is a one-liner. The fix is to modify it from:
guessTypeFromName: url
"guesses a content type from the url"
^ MIMEType forFileNameReturnMimeTypesOrNil: url asString.
to:
guessTypeFromName: url
"guesses a content type from the url"
^ MIMEType forFileNameReturnSingleMimeTypeOrNil: url asString.
_______________________________________________
Pharo-bugtracker mailing list
[hidden email]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-bugtracker