platform/upstream/libsoup.git
11 years agoSoupTLD: fix a regression in soup_tld_is_public_suffix()
Sergio Villar Senin [Thu, 2 Aug 2012 14:50:54 +0000 (16:50 +0200)]
SoupTLD: fix a regression in soup_tld_is_public_suffix()

soup_tld_is_public_suffix() was not returning TRUE for well known TLDs as
".com" after cbae89f4. Also added some extra documentation to
soup_tld_get_base_domain() in order to make explicit that it returns NULL
for private URLs.

Reworked unit tests in order to allow them detect these regressions.

https://bugzilla.gnome.org/show_bug.cgi?id=681085

11 years ago2.39.5 LIBSOUP_2_39_5
Dan Winship [Mon, 6 Aug 2012 21:46:39 +0000 (17:46 -0400)]
2.39.5

11 years agosoup-xmlrpc: fix parsing of <methodCall> without <params>
Dan Winship [Mon, 6 Aug 2012 18:28:00 +0000 (14:28 -0400)]
soup-xmlrpc: fix parsing of <methodCall> without <params>

If a method takes no parameters, you can leave out the <params>
section of <methodCall>, but soup_xmlrpc_parse_method_call() was
requiring it anyway.

Fix that and add some tests of parameter-less methods.

https://bugzilla.gnome.org/show_bug.cgi?id=671661

11 years agosoup-socket.c: fix a use-after-free of a GCancellable
Dan Winship [Mon, 6 Aug 2012 14:33:38 +0000 (10:33 -0400)]
soup-socket.c: fix a use-after-free of a GCancellable

11 years agoAdd a simple regression test for unbound sockets
Simon McVittie [Thu, 29 Mar 2012 18:17:17 +0000 (19:17 +0100)]
Add a simple regression test for unbound sockets

https://bugzilla.gnome.org/show_bug.cgi?id=673083

11 years agoSoupSocket: local, remote address are undefined if unconnected
Simon McVittie [Thu, 29 Mar 2012 18:17:02 +0000 (19:17 +0100)]
SoupSocket: local, remote address are undefined if unconnected

Warn and return NULL deterministically, rather than warning and returning
uninitialized stack garbage, but document it as "undefined"; these
methods were never meant to be valid in this situation, apparently.

Bug: https://bugzilla.gnome.org/show_bug.cgi?id=673083

11 years agotld-test: update for changes to TLD data
Dan Winship [Mon, 6 Aug 2012 14:29:31 +0000 (10:29 -0400)]
tld-test: update for changes to TLD data

11 years agoupdate effective_tld_names.dat
Dan Winship [Mon, 6 Aug 2012 14:17:28 +0000 (10:17 -0400)]
update effective_tld_names.dat

11 years agoAssamese translation updated
Nilamdyuti Goswami [Fri, 3 Aug 2012 10:08:38 +0000 (15:38 +0530)]
Assamese translation updated

11 years agoAdd Esperanto translation
Kristjan SCHMIDT [Wed, 1 Aug 2012 18:01:48 +0000 (20:01 +0200)]
Add Esperanto translation

11 years agoUpdated Galician translations
Fran Diéguez [Tue, 31 Jul 2012 00:02:52 +0000 (02:02 +0200)]
Updated Galician translations

11 years agoautogen.sh: remove two outdated bits
Dan Winship [Mon, 30 Jul 2012 16:13:16 +0000 (12:13 -0400)]
autogen.sh: remove two outdated bits

11 years agoUpdated Russian translation
Alexsey Nadtochey [Mon, 30 Jul 2012 11:40:13 +0000 (15:40 +0400)]
Updated Russian translation

11 years agoUpdated gujarati file & Added LINGUAS file for gujarati
Sweta Kothari [Fri, 27 Jul 2012 09:06:06 +0000 (14:36 +0530)]
Updated gujarati file  & Added LINGUAS file for gujarati

11 years agoFix building with MinGW compiler
Paweł Forysiuk [Thu, 26 Jul 2012 18:44:02 +0000 (20:44 +0200)]
Fix building with MinGW compiler

11 years agoUpdate Chinese simplified translation for ui
Cheng Lu [Thu, 26 Jul 2012 05:35:55 +0000 (13:35 +0800)]
Update Chinese simplified translation for ui

11 years agoUpdated Norwegian bokmål translation
Kjartan Maraas [Wed, 25 Jul 2012 14:29:32 +0000 (16:29 +0200)]
Updated Norwegian bokmål translation

11 years agotest-utils: simplify the SoupRequest test utils a bit
Dan Winship [Wed, 25 Jul 2012 12:54:11 +0000 (08:54 -0400)]
test-utils: simplify the SoupRequest test utils a bit

11 years agoUpdated Hebrew translation.
Yaron Shahrabani [Tue, 24 Jul 2012 20:15:09 +0000 (23:15 +0300)]
Updated Hebrew translation.

11 years agoSoupConverterWrapper: handle truncated responses in general
Dan Winship [Tue, 24 Jul 2012 20:06:43 +0000 (16:06 -0400)]
SoupConverterWrapper: handle truncated responses in general

Rather than just the specific case of "server claims non-0
Content-Length but response is empty", allow the response to be
truncated at any point. Because, you know, the web.

11 years agoSoupSessionAsync: fix handling of timed-out SoupRequests
Dan Winship [Tue, 24 Jul 2012 19:22:44 +0000 (15:22 -0400)]
SoupSessionAsync: fix handling of timed-out SoupRequests

When using the SoupRequest API, a message that hit
SOUP_SESSION_TIMEOUT would error out, but would not emit "finished" or
get fully removed from the queue. Fix that and add SoupRequest tests
to timeout-test (along with tests that "finished" gets emitted).

12 years agoUpdated Greek translation
Tom Tryfonidis [Fri, 20 Jul 2012 10:59:25 +0000 (13:59 +0300)]
Updated Greek translation

12 years agoSoupSocket: don't emit "readable" on disconnect for blocking sockets
Dan Winship [Thu, 19 Jul 2012 12:49:55 +0000 (08:49 -0400)]
SoupSocket: don't emit "readable" on disconnect for blocking sockets

"readable" and "writable" are only supposed to be emitted for
non-blocking sockets, but we were emitting "readable" on disconnect
for all sockets.

In libsoup 2.38 and earlier, this could cause a crash if a message in
a SoupSessionSync failed at certain points, since the code wasn't
expecting to end up in io_read(). The current code no longer has this
problem (since soup-message-io no longer uses the SoupSocket signals),
but other external users of SoupSocket might.

12 years agoUpdated Slovenian translation
Matej Urbančič [Thu, 19 Jul 2012 08:13:14 +0000 (10:13 +0200)]
Updated Slovenian translation

12 years agoSoupServer: fix non-default-main-context usage
Dan Winship [Wed, 18 Jul 2012 21:43:12 +0000 (17:43 -0400)]
SoupServer: fix non-default-main-context usage

Need to push the server's async_context around doing message I/O to
make sure all the responses come back to the right place.

12 years agoFix deprecation warning on soup_message_headers_get()
Dan Winship [Wed, 18 Jul 2012 12:35:58 +0000 (08:35 -0400)]
Fix deprecation warning on soup_message_headers_get()

https://bugzilla.gnome.org/show_bug.cgi?id=680143

12 years agoSoupConverterWrapper: handle empty "compressed" responses
Dan Winship [Tue, 17 Jul 2012 21:00:07 +0000 (17:00 -0400)]
SoupConverterWrapper: handle empty "compressed" responses

If a server sends an empty response but includes a Content-Encoding
header (in particular, in a HEAD or 304 response), suppress the
PARTIAL_INPUT error from the GZlibDecompressor and just return 0.

https://bugzilla.gnome.org/show_bug.cgi?id=679527 (?)

12 years agoSoupBodyInputStream: fix hang reading empty chunked response
Dan Winship [Tue, 17 Jul 2012 20:58:55 +0000 (16:58 -0400)]
SoupBodyInputStream: fix hang reading empty chunked response

Set the eof flag immediately after reading the last chunk, rather than
waiting for the next read, since if the caller calls is_readable() or
create_source() instead, we need to know to not wait for the
base_stream to become readable.

12 years agoAdded Serbian translation
Мирослав Николић [Tue, 17 Jul 2012 20:08:13 +0000 (22:08 +0200)]
Added Serbian translation

12 years agosoup_uri_normalize: more fixes
Dan Winship [Tue, 17 Jul 2012 14:11:07 +0000 (10:11 -0400)]
soup_uri_normalize: more fixes

uri_normalized_copy() should not go into fixup mode when it sees a
non-printable character if that character is in @unescape_extra.
Likewise, if it does go into fixup mode, it shouldn't fix up the
@unescape_extra characters.

https://bugzilla.gnome.org/show_bug.cgi?id=680018

12 years ago2.39.4.1 LIBSOUP_2_39_4_1
Dan Winship [Tue, 17 Jul 2012 12:34:51 +0000 (08:34 -0400)]
2.39.4.1

12 years agosoup-tld: Handle SOUP_TLD_ERROR_NO_BASE_DOMAIN in soup_tld_domain_is_public_suffix()
Carlos Garcia Campos [Tue, 17 Jul 2012 10:54:07 +0000 (12:54 +0200)]
soup-tld: Handle SOUP_TLD_ERROR_NO_BASE_DOMAIN in soup_tld_domain_is_public_suffix()

And return FALSE in case domain doesn't have a base domain, so that non
suffixed domains like localhost are not considered public.

https://bugzilla.gnome.org/show_bug.cgi?id=679230

12 years agotld-parser.py: fix tabs vs spaces
Dan Winship [Tue, 17 Jul 2012 12:27:46 +0000 (08:27 -0400)]
tld-parser.py: fix tabs vs spaces

and remove an unused import. patch from "marduk".

https://bugzilla.gnome.org/show_bug.cgi?id=680089

12 years agoUpdated Spanish translation
Daniel Mustieles [Tue, 17 Jul 2012 10:05:08 +0000 (12:05 +0200)]
Updated Spanish translation

12 years ago2.39.4 LIBSOUP_2_39_4
Dan Winship [Mon, 16 Jul 2012 22:27:30 +0000 (18:27 -0400)]
2.39.4

12 years agosoup-tld: do not consider non suffixed domains as public
Dan Winship [Mon, 16 Jul 2012 22:03:24 +0000 (18:03 -0400)]
soup-tld: do not consider non suffixed domains as public

Non suffixed hostnames (used in many intranet applications) should not be
considered as public.

Based on a patch from Sergio Villar Senin.

https://bugzilla.gnome.org/show_bug.cgi?id=679230

12 years agoSet the message priv->decoders to NULL after free.
Alban Browaeys [Mon, 16 Jul 2012 21:21:18 +0000 (23:21 +0200)]
Set the message priv->decoders to NULL after free.

Set the message priv->decoders to NULL after free
to fix

(epiphany:14909): GLib-GObject-CRITICAL **: g_object_unref:
assertion `G_IS_OBJECT (object)' failed

 in epiphany from soup_message_cleanup_response.

https://bugzilla.gnome.org/show_bug.cgi?id=680055

12 years agosoup_message_headers_get_content_length: recheck encoding
Dan Winship [Mon, 16 Jul 2012 16:58:40 +0000 (12:58 -0400)]
soup_message_headers_get_content_length: recheck encoding

Use soup_message_headers_get_encoding() rather than looking at
hdrs->encoding directly, so that it gets recomputed if it's stale (eg,
from another header having been removed).

https://bugzilla.gnome.org/show_bug.cgi?id=680029

12 years agosoup-cache: Save the sniffed mime type in the cache too
Carlos Garcia Campos [Mon, 16 Jul 2012 16:18:31 +0000 (18:18 +0200)]
soup-cache: Save the sniffed mime type in the cache too

https://bugzilla.gnome.org/show_bug.cgi?id=680029

12 years agoSoupSession: rename host_lock to conn_lock
Dan Winship [Mon, 2 Jul 2012 17:50:39 +0000 (13:50 -0400)]
SoupSession: rename host_lock to conn_lock

since that describes its purpose better

12 years agosoup-message-io: make disconnect-on-unfinished more implicit
Dan Winship [Fri, 8 Jun 2012 08:04:36 +0000 (04:04 -0400)]
soup-message-io: make disconnect-on-unfinished more implicit

Rather than disconnecting the connection from soup_message_io_stop()
if the message didn't complete, do it from
SoupConnection:clear_current_item(). This makes it DTRT even if the
SoupMessageQueueItem loses its connection before
soup_message_io_stop() gets called.

12 years agosoup_session_queue_message: simplify the msg refcounting internally
Dan Winship [Sun, 27 May 2012 15:49:26 +0000 (11:49 -0400)]
soup_session_queue_message: simplify the msg refcounting internally

12 years agoSoupSession: replace queue_message() base impl with a separate method
Dan Winship [Sun, 27 May 2012 15:30:03 +0000 (11:30 -0400)]
SoupSession: replace queue_message() base impl with a separate method

Create soup_session_append_queue_item() to do what the base
implementation of queue_message() did, and use that from various
places that used to call the base queue_message() directly.

12 years agosoup-uri: fix uri_normalized_copy to not always do fixup
Dan Winship [Mon, 16 Jul 2012 16:04:52 +0000 (12:04 -0400)]
soup-uri: fix uri_normalized_copy to not always do fixup

need_fixup was always getting set, because the trailing NUL character
was being processed by the loop. Fix.

Pointed out by Yann SOUBEYRAND,
https://bugzilla.gnome.org/show_bug.cgi?id=680018

12 years agoUpdated Traditional Chinese translation(Hong Kong and Taiwan)
Chao-Hsiung Liao [Mon, 16 Jul 2012 00:48:40 +0000 (08:48 +0800)]
Updated Traditional Chinese translation(Hong Kong and Taiwan)

12 years agoUpdated Belarusian translation.
Ihar Hrachyshka [Sun, 15 Jul 2012 11:23:21 +0000 (14:23 +0300)]
Updated Belarusian translation.

12 years agoAdded Lithuanian translation
Aurimas Černius [Sat, 14 Jul 2012 15:50:25 +0000 (18:50 +0300)]
Added Lithuanian translation

12 years agoRemove zh_HK and zh_TW because the translation files are missing
Kjartan Maraas [Sat, 14 Jul 2012 11:24:22 +0000 (13:24 +0200)]
Remove zh_HK and zh_TW because the translation files are missing

12 years agoUpdated Traditional Chinese translation(Hong Kong and Taiwan)
Chao-Hsiung Liao [Sat, 14 Jul 2012 06:17:37 +0000 (14:17 +0800)]
Updated Traditional Chinese translation(Hong Kong and Taiwan)

12 years agoFix the retry-on-broken-connection codepath for SoupRequest
Dan Winship [Mon, 9 Jul 2012 18:36:09 +0000 (14:36 -0400)]
Fix the retry-on-broken-connection codepath for SoupRequest

The retry-if-the-server-closes-the-connection-immediately code was
only getting run in the SoupMessage API codepaths. Fit it into the
right place in the SoupRequest paths too, and test that from
connection-test.

Might fix https://bugzilla.gnome.org/show_bug.cgi?id=679527 ?

12 years agoAdd some test-utils helpers for async SoupRequest usage
Dan Winship [Mon, 9 Jul 2012 17:44:42 +0000 (13:44 -0400)]
Add some test-utils helpers for async SoupRequest usage

12 years agosoup-client-input-stream: don't chain up from close/close_async
Dan Winship [Fri, 13 Jul 2012 19:27:13 +0000 (15:27 -0400)]
soup-client-input-stream: don't chain up from close/close_async

GInputStream's default close_async method runs the sync close method
in a thread, which means that you can't chain up to it from a subclass
implementation. And GFilterInputStream only overrides close_fn, not
close_async, so there's no way to asynchronously get the
close-base-stream behavior if we want to override close_async in
SoupClientInputStream. Ugh! Anyway, we always have a non
close-base-stream SoupBodyInputStream somewhere under the
SoupClientInputStream, so there's no need to chain up anyway.

Fixes a sporadic bug caused by the fact that we were closing the
stream (and thus calling soup_message_io_run_until_finish()) twice.

12 years agoClean up includes
Dan Winship [Fri, 6 Jul 2012 17:09:50 +0000 (13:09 -0400)]
Clean up includes

Especially, include soup.h rather than individually including a bunch
of other public soup-*.h files.

Remove unnecessary system includes (many are leftovers from code that
has moved down into glib).

12 years agoReorganize files to need fewer forward declarations
Dan Winship [Wed, 4 Jul 2012 17:12:38 +0000 (13:12 -0400)]
Reorganize files to need fewer forward declarations

Also, prefix virtual method implementation names with the class name,
to be consistent with other code.

12 years agoUse G_DEFINE_INTERFACE and G_DEFINE_BOXED_TYPE
Dan Winship [Wed, 4 Jul 2012 16:44:37 +0000 (12:44 -0400)]
Use G_DEFINE_INTERFACE and G_DEFINE_BOXED_TYPE

12 years agoUse g_clear_object(), g_clear_pointer()
Dan Winship [Mon, 2 Jul 2012 14:49:53 +0000 (10:49 -0400)]
Use g_clear_object(), g_clear_pointer()

12 years agoUse g_ptr_array_new_with_free_func()
Dan Winship [Mon, 2 Jul 2012 14:18:18 +0000 (10:18 -0400)]
Use g_ptr_array_new_with_free_func()

12 years agoUse g_slist_free_full()
Dan Winship [Mon, 2 Jul 2012 13:49:48 +0000 (09:49 -0400)]
Use g_slist_free_full()

12 years agoReplace g_hash_table_foreach() with GHashTableIter
Dan Winship [Sun, 3 Jun 2012 13:36:14 +0000 (09:36 -0400)]
Replace g_hash_table_foreach() with GHashTableIter

or g_hash_table_new_full() when the foreach was only being used for
cleanup.

12 years agoRemove an unnecessary old demo program that doesn't work any more
Dan Winship [Mon, 2 Jul 2012 13:34:18 +0000 (09:34 -0400)]
Remove an unnecessary old demo program that doesn't work any more

12 years agosoup-session.c: whitespace fix
Dan Winship [Sun, 3 Jun 2012 13:33:44 +0000 (09:33 -0400)]
soup-session.c: whitespace fix

12 years agorequester-test: fix some debug printfs
Dan Winship [Fri, 13 Jul 2012 18:18:22 +0000 (14:18 -0400)]
requester-test: fix some debug printfs

12 years agoAssamese translation completed
Nilamdyuti Goswami [Fri, 13 Jul 2012 14:42:43 +0000 (20:12 +0530)]
Assamese translation completed

12 years agoAdded Assamese to LINGUAS
Nilamdyuti Goswami [Fri, 13 Jul 2012 14:38:08 +0000 (20:08 +0530)]
Added Assamese to LINGUAS

12 years agoUpdated Hebrew translation.
Yaron Shahrabani [Thu, 12 Jul 2012 15:58:38 +0000 (18:58 +0300)]
Updated Hebrew translation.

12 years agoSoupCookie: ignore values on httponly and secure attributes
Dan Winship [Wed, 11 Jul 2012 00:35:08 +0000 (20:35 -0400)]
SoupCookie: ignore values on httponly and secure attributes

The cookie parsing algorithm says to ignore values on attributes that
aren't supposed to have them, so do that. Also add a test for this.
Based on a patch from "Basavaraj".

Also, drive-by bugfix in soup_cookie_to_set_cookie_header() /
soup_cookies_to_response() (the SoupServer side of the cookie APIs),
which were outputting "HttpOnly" if the cookie had the "secure" flag
set, rather than the "http_only" flag.

https://bugzilla.gnome.org/show_bug.cgi?id=678753

12 years agoFix cookies-test.c indentation
Dan Winship [Wed, 11 Jul 2012 00:12:41 +0000 (20:12 -0400)]
Fix cookies-test.c indentation

12 years agoUpdated Norwegian bokmål translation
Kjartan Maraas [Tue, 10 Jul 2012 05:57:26 +0000 (07:57 +0200)]
Updated Norwegian bokmål translation

12 years agoReplace deprecated symbols
Javier Jardón [Thu, 5 Jul 2012 14:50:32 +0000 (23:50 +0900)]
Replace deprecated symbols

12 years agoAdd deprecation attributes to deprecated functions
Javier Jardón [Sat, 10 Mar 2012 12:24:05 +0000 (12:24 +0000)]
Add deprecation attributes to deprecated functions

This is using the newly introduce G_DEPRECATED macros
from GLib. Traditional deprecation guards are still in
place.

Fixes https://bugzilla.gnome.org/show_bug.cgi?id=671770

12 years agoUpdated Bulgarian translation
Alexander Shopov [Thu, 5 Jul 2012 09:37:46 +0000 (12:37 +0300)]
Updated Bulgarian translation

12 years agoupdate .gitignore for tld_data.inc
Dan Winship [Wed, 4 Jul 2012 15:11:50 +0000 (11:11 -0400)]
update .gitignore for tld_data.inc

12 years agoAdded Vietnamese translation
Nguyễn Thái Ngọc Duy [Sat, 30 Jun 2012 03:16:01 +0000 (10:16 +0700)]
Added Vietnamese translation

12 years agoUpdated Indonesian translation
Andika Triwidada [Thu, 28 Jun 2012 03:26:37 +0000 (10:26 +0700)]
Updated Indonesian translation

12 years agotld-parser: Rewrite in Python
Colin Walters [Tue, 26 Jun 2012 17:27:17 +0000 (13:27 -0400)]
tld-parser: Rewrite in Python

This avoids the issues in building native code to build an
intermediate file to build more native code.  Automake has
BUILT_SOURCES but it's easier to just have build tools in scripting
languages.

https://bugzilla.gnome.org/show_bug.cgi?id=678909

12 years agobuild: Don't write tld_data.inc to srcdir which may not be writable
Colin Walters [Tue, 26 Jun 2012 17:40:33 +0000 (13:40 -0400)]
build: Don't write tld_data.inc to srcdir which may not be writable

Generated data should go in the builddir.

https://bugzilla.gnome.org/show_bug.cgi?id=678909

12 years agotld-parser: Add error handling
Colin Walters [Tue, 26 Jun 2012 15:20:33 +0000 (11:20 -0400)]
tld-parser: Add error handling

12 years agoRevert "make dist fix"
Colin Walters [Tue, 26 Jun 2012 14:13:28 +0000 (10:13 -0400)]
Revert "make dist fix"

This reverts commit 76cc02212e63f692e6e36bdf99987928dc3c2ed2.  After
discussion with Dan on IRC, we agreed to revert this for now until a
better solution is written.  Probably one of

1) Rewrite tld-parser in a scripting language, so it doesn't have
   a build process
2) Hack somewhere else in automake to make 'make dist' happy

12 years ago2.39.3 LIBSOUP_2_39_3
Dan Winship [Tue, 26 Jun 2012 12:48:25 +0000 (08:48 -0400)]
2.39.3

12 years agomake dist fix
Dan Winship [Tue, 26 Jun 2012 12:42:38 +0000 (08:42 -0400)]
make dist fix

12 years agoUpdated Galician translations
Fran Diéguez [Sun, 24 Jun 2012 21:26:41 +0000 (23:26 +0200)]
Updated Galician translations

12 years agoUpdated Greek translation
Tom Tryfonidis [Fri, 22 Jun 2012 10:17:20 +0000 (13:17 +0300)]
Updated Greek translation

12 years agoUpdated Telugu Translation
Sasi Bhushan Boddepalli [Wed, 20 Jun 2012 13:43:41 +0000 (19:13 +0530)]
Updated Telugu Translation

12 years agoUpdated Telugu Translation
Sasi Bhushan Boddepalli [Wed, 20 Jun 2012 13:39:36 +0000 (19:09 +0530)]
Updated Telugu Translation

12 years agobelatedly commit 2.39.2 NEWS
Dan Winship [Mon, 4 Jun 2012 16:25:51 +0000 (12:25 -0400)]
belatedly commit 2.39.2 NEWS

12 years agoUpdated Slovenian translation
Matej Urbančič [Sat, 16 Jun 2012 06:47:56 +0000 (08:47 +0200)]
Updated Slovenian translation

12 years agoUpdated Spanish translation
Daniel Mustieles [Fri, 15 Jun 2012 10:10:51 +0000 (12:10 +0200)]
Updated Spanish translation

12 years agosoup-cookie-jar: do not accept cookies for well known public domains
Sergio Villar Senin [Thu, 19 Apr 2012 18:39:24 +0000 (20:39 +0200)]
soup-cookie-jar: do not accept cookies for well known public domains

SoupCookieJar uses the new soup_tld_* utils to reject cookies whose domains
are registered public suffixes. This prevents sites from setting supercookies.

https://bugzilla.gnome.org/show_bug.cgi?id=673802

12 years agosoup-tld: added soup_tld_* utils
Sergio Villar Senin [Mon, 9 Apr 2012 22:06:35 +0000 (00:06 +0200)]
soup-tld: added soup_tld_* utils

The soup_tld_* set of functions along with the list of public suffixes
published in http://publicsuffix.org allows API clients to get the base
domain of a given hostname or to check if a given domain is a public suffix
(one under which internet users can register new names).

https://bugzilla.gnome.org/show_bug.cgi?id=673802

12 years agoUpdated Greek translation
Tom Tryfonidis [Thu, 14 Jun 2012 00:48:40 +0000 (03:48 +0300)]
Updated Greek translation

12 years agoBump version to 2.39.2 LIBSOUP_2_39_2
Christophe Dumez [Tue, 12 Jun 2012 16:59:58 +0000 (19:59 +0300)]
Bump version to 2.39.2

12 years agoBug 677923 - Add soup_cookie_jar_set_cookie_with_first_party() alternative that takes...
Christophe Dumez [Tue, 12 Jun 2012 08:00:37 +0000 (11:00 +0300)]
Bug 677923 - Add soup_cookie_jar_set_cookie_with_first_party() alternative that takes a SoupCookie in argument

Currently, the only way to add a cookie while checking first_party is to use
soup_cookie_jar_set_cookie_with_first_party(). However, this function takes an
unparsed cookie in argument.

In the event the client has already parsed the cookie (e.g. to do some
pre-processing), it would be useful to have an alternative to
soup_cookie_jar_set_cookie_with_first_party() which takes a parsed SoupCookie
in argument. This would be more efficient.

12 years agoBug 677922 - Add soup_cookie_jar_get_cookies() alternative that returns a GSList...
Christophe Dumez [Tue, 12 Jun 2012 06:55:11 +0000 (09:55 +0300)]
Bug 677922 - Add soup_cookie_jar_get_cookies() alternative that returns a GSList of SoupCookies

Adds a soup_cookie_jar_get_cookie_list() function that returns the
cookies in the jar that would be sent with a request to a specific
uri, as a GSList of SoupCookies.

12 years agosoup_message_headers_get_content_type: annotate @params
Dan Winship [Tue, 12 Jun 2012 11:14:35 +0000 (07:14 -0400)]
soup_message_headers_get_content_type: annotate @params

https://bugzilla.gnome.org/show_bug.cgi?id=677002

12 years agoUpdated Belarusian translation.
Ihar Hrachyshka [Fri, 8 Jun 2012 14:37:31 +0000 (17:37 +0300)]
Updated Belarusian translation.

12 years agotests/date: Fix compiler warning
Colin Walters [Thu, 7 Jun 2012 02:03:08 +0000 (22:03 -0400)]
tests/date: Fix compiler warning

12 years agosoup-cache: use the status code from the stored response for expiration heuristics
Sergio Villar Senin [Mon, 4 Jun 2012 18:51:12 +0000 (20:51 +0200)]
soup-cache: use the status code from the stored response for expiration heuristics

We must check the status code of the stored response instead of the status
code of the SoupMessage passed to soup_cache_entry_set_freshness(). The reason
is because the SoupMessage might be the one used to revalidate the resource
instead of the original.

12 years agosoup-cache: use the proper Content-Type when returning data from cache
Sergio Villar Senin [Fri, 1 Jun 2012 17:38:51 +0000 (19:38 +0200)]
soup-cache: use the proper Content-Type when returning data from cache

This does not completely fixes the content-type handling by the cache as it
does not take into account the sniffed content type. Anyway trying to return
something from the original message was clearly wrong as it was not sent.
Better use the Content-Type from the 304 response.

12 years agosoup-cache: correctly handle conditional requests not returning 304
Sergio Villar Senin [Fri, 1 Jun 2012 17:17:40 +0000 (19:17 +0200)]
soup-cache: correctly handle conditional requests not returning 304

If we do not get a 304 after a conditional request we have to refresh the
cache contents for that resource. We should use the original SoupMessage to
retrieve the new data from the resource (we were incorrectly using the
SoupMessage used for the conditional request).

The current strategy is clearly suboptimal as we ask again for the resource
instead of directly using the data from the response of the conditional
request. This will change once the cache is integrated into the streams
stack.

12 years agoUpdated Polish translation
Piotr Drąg [Sun, 3 Jun 2012 13:35:54 +0000 (15:35 +0200)]
Updated Polish translation