libsoup r905 - in trunk: . libsoup tests



Author: danw
Date: 2007-01-06 19:24:44 +0000 (Sat, 06 Jan 2007)
New Revision: 905
ViewCVS link: http://svn.gnome.org/viewcvs/libsoup?rev=905&view=rev

Added:
   trunk/tests/header-parsing.c
Modified:
   trunk/ChangeLog
   trunk/libsoup/soup-headers.c
   trunk/libsoup/soup-headers.h
   trunk/tests/
   trunk/tests/Makefile.am
Log:
	* libsoup/soup-headers.c (soup_headers_parse): Rewrite this to be
	easier to understand and more correct, and make the "str" param
	const rather than overwriting it during parsing.
	(soup_headers_parse_request, soup_headers_parse_response):
	Likewise, make "str" param const. Fix the doc comment to describe
	the correct constraint on str. Make the parsing slightly more
	lenient as per sections 4.1 and 19.3 of RFC 2616.

	* tests/header-parsing.c: new regression test, for Request-Line,
	Status-Line, and message-header parsing.

	Inspired by #391970 (crash in SoupServer when certain invalid
	requests are received).





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]