Issue 4921 in pharo: MIMEDocument class >> typeFromName: should return a String

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Issue 4921 in pharo: MIMEDocument class >> typeFromName: should return a String

pharo
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=4921

As 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
Reply | Threaded
Open this post in threaded view
|

Re: Issue 4921 in pharo: MIMEDocument class >> typeFromName: should return a String

pharo

Comment #1 on issue 4921 by [hidden email]: MIMEDocument class >>  
typeFromName: should return a String
http://code.google.com/p/pharo/issues/detail?id=4921

oops the caption is wrong, the selector is "guessTypeFromName"


_______________________________________________
Pharo-bugtracker mailing list
[hidden email]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-bugtracker