libsoup r975 - in branches/libsoup-2.4: . docs/reference docs/reference/tmpl libsoup tests



Author: danw
Date: 2007-12-06 01:48:58 +0000 (Thu, 06 Dec 2007)
New Revision: 975
ViewCVS link: http://svn.gnome.org/viewcvs/libsoup?rev=975&view=rev

Modified:
   branches/libsoup-2.4/ChangeLog
   branches/libsoup-2.4/docs/reference/libsoup-sections.txt
   branches/libsoup-2.4/docs/reference/tmpl/soup-uri.sgml
   branches/libsoup-2.4/libsoup/soup-uri.c
   branches/libsoup-2.4/libsoup/soup-uri.h
   branches/libsoup-2.4/tests/uri-parsing.c
Log:
	* libsoup/soup-uri.c: Update for RFC 3986 changes, bgo 266516, and
	general conformance
	(soup_uri_get_protocol): match protocols case-insensitively
	(soup_uri_new_with_base): Don't fully %-decode the fragment,
	query, and path, but do %-decode anything which isn't supposed to
	be encoded. Recognize IPv6 address literals. Use stricter
	"../"-stripping rules on the path. Reject URIs with junk between
	the port number and the path.
	(soup_uri_to_string): Update for the fact that the host might be
	an IPv6 literal, and for the fact that path, query, and fragment
	are now pre-escaped.
	(soup_uri_equal): compare hostnames case-insensitively
	(uri_encoded_char): update to match RFC 3986
	(append_uri_encoded): use uppercase hex letters as recommended by
	RFC 3986.
	(soup_uri_normalize): decode only %-escapes that don't belong
	there.

	* docs/reference/tmpl/soup-uri.sgml: add some more SoupUri docs

	* tests/uri-parsing.c: Add new tests from RFC 3986, RFC 2732, RFC
	2616, bgo 266516, and elsewhere. Update some tests to match new
	parsing/unparsing rules.





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