[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: [PATCH] validate MIME type correctly

From: Greg Hudson <ghudson_at_MIT.EDU>
Date: Mon, 28 Apr 2008 13:37:50 -0400

On Mon, 2008-04-28 at 19:18 +0200, Stefan Sperling wrote:
> > Stefan Sperling wrote on Mon, 28 Apr 2008 at 17:00 +0200:
> > > Btw, if there's any space before the semicolon (i.e. 'text/plain ;')
> > > trunk will now raise an error. RFC 1521 seems to agree with this:

RFC 1521 has long been obsoleted by RFC 2045-2049, although that grammar
isn't materially different in 2045.

RFC 822 takes a very a relaxed attitude towards whitespace:

     3.1.4. STRUCTURED FIELD BODIES

        To aid in the creation and reading of structured fields, the
        free insertion of linear-white-space (which permits folding
        by inclusion of CRLFs) is allowed between lexical tokens.
        Rather than obscuring the syntax specifications for these
        structured fields with explicit syntax for this linear-white-
        space, the existence of another "lexical" analyzer is assumed.

RFC 1521 and 2045 are written in the same style. RFC 2822 (obsoleting
822) cleans this up, but to my knowledge there is no cleaned-up grammar
for content-type headers.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe_at_subversion.tigris.org
For additional commands, e-mail: dev-help_at_subversion.tigris.org
Received on 2008-04-28 19:38:30 CEST

This is an archived mail posted to the Subversion Dev mailing list.