From: PHO Date: Mon, 14 Nov 2011 02:26:53 +0000 (+0900) Subject: The MIMEParams parser should consider an omitted charset to be an error. X-Git-Url: http://git.cielonegro.org/gitweb.cgi?p=Lucu.git;a=commitdiff_plain;h=b87f64c979c79592e6824ee531478eacdaa384bb The MIMEParams parser should consider an omitted charset to be an error. --- diff --git a/Network/HTTP/Lucu/MIMEParams.hs b/Network/HTTP/Lucu/MIMEParams.hs index 9c39236..9e5b938 100644 --- a/Network/HTTP/Lucu/MIMEParams.hs +++ b/Network/HTTP/Lucu/MIMEParams.hs @@ -184,8 +184,7 @@ initialEncodedValue -- NOTE: I'm not sure this is the right thing, but RFC -- 2231 doesn't tell us what we should do when the -- charset is omitted. - return ("US-ASCII", payload) - -- FIXME: Rethink about this behaviour. + fail "charset is missing" else return (charset, payload) where