Re: #327: Expect syntax

On Sat, Dec 17, 2011 at 11:01:14PM +0100, Julian Reschke wrote:
> >Well, it's possible that in a few years we see new implementations write
> >their Expect header as $expectation ";" $extension but by this time, server
> Example?

I basically mean this (sorry for the poor naming above) :

  int make_header(char *out, const char *hdr, const char *name, const char *value)
	return sprintf(out, "%s: %s; %s\r\n", hdr, name, value);

and further in the code :

  if (post_request)
      req += make_header(req, "Expect", "100-continue", "");

Which will result exactly in this, which was not possible in 2616 :

  "Expect: 100-continue; \r\n"

That said, since Expect is only used with 100-continue, we could add
a line indicating that previous versions did not allow the trailing
semi-colon and that senders should avoid emitting it for the sake of


Received on Saturday, 17 December 2011 22:26:22 UTC