[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
GSMimeParser scanToken: and empty quoted strings
From: |
Niels Grewe |
Subject: |
GSMimeParser scanToken: and empty quoted strings |
Date: |
Fri, 07 Oct 2011 16:24:09 +0200 |
User-agent: |
Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.23) Gecko/20111005 Icedove/3.1.15 |
Hello,
I just ran into a little problem with the GSMimeParser in conjunction
with the authentication stuff in NSURL:
GSMimeParser's -scanToken: method returns nil if it scans an empty
quoted string, and this causes problems if a HTTP server announces an
empty realm for authentication because the corresponding
NSURLProtectionSpace is not created correctly.
The trivial fix is to return @"" instead of nil when scanning empty
strings, but I wanted to check whether there was a good reason for the
present behaviour.
Best regards,
Niels
- GSMimeParser scanToken: and empty quoted strings,
Niels Grewe <=