summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
...
* SoupServer: add :http-aliases and :https-aliases propertiesDan Winship2013-08-267-55/+298
| | | | | | | | | Add :http-aliases and :https-aliases properties to SoupServer, to allow it to handle requests like: GET daap://host:port/path HTTP/1.1 https://bugzilla.gnome.org/show_bug.cgi?id=703694
* server-test: split SoupServer-specific tests out of misc-testDan Winship2013-08-263-209/+252
|
* chunk-io-test: new test of the chunked I/O read/write streamsDan Winship2013-08-252-0/+655
|
* soup-filter-input-stream: fix read_until() with subclassesDan Winship2013-08-251-5/+12
| | | | | | If doing a read_line()/read_until() in a subclass, we need to use the subclass's read implementation rather than just going directly to the base stream.
* soup-body-output-stream: fix closing of chunked streamDan Winship2013-08-251-1/+2
| | | | | | | | When closing a chunked stream, we need to write the final 0-length chunk. However, we can only do that if we successfully wrote the previous chunk. https://bugzilla.gnome.org/show_bug.cgi?id=703297
* soup_cookie_new: clarify the interpretation of @domainDan Winship2013-08-251-0/+4
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=691840
* Also copy disabled features when copying messages.Andre Moreira Magalhaes (andrunko)2013-08-251-0/+7
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=706338
* cache-test: fix race conditionDan Winship2013-08-231-9/+20
| | | | | | | The refcounting test had a race condition. Fix it by just waiting for the stream to be destroyed, rather than asserting it already has been. https://bugzilla.gnome.org/show_bug.cgi?id=698305
* 2.43.90LIBSOUP_2_43_902.43.90Dan Winship2013-08-192-1/+12
|
* More IPv6 scope ID fixesDan Winship2013-08-193-4/+27
| | | | | | | Don't include the scope ID in the "Host" header. Make SoupURI correctly parse both correct and incorrect scope IDs, and add checks for that in tests/uri-parsing.
* soup-address: fix a GMainContext bugDan Winship2013-08-191-63/+48
| | | | | | | | | | | SoupAddress's GSocketAddressEnumerator implementation was passing the wrong GMainContext to soup_address_resolve_async(), although it only ended up affecting the address-is-already-resolved case. Fix this. Also, remove the async_lookups list from SoupAddressPrivate, and just make multiple calls to the resolver if there are multiple calls to soup_address_resolve_async() at once, since that code didn't handle different GMainContexts correctly.
* soup-address: handle IPv6 literals with scope IDsDan Winship2013-08-191-0/+60
| | | | | | | Use GNetworkAddress to try to parse IPv6 addresses with scope IDs, rather than just letting the scope ID get dropped. Part of https://bugzilla.gnome.org/show_bug.cgi?id=669724
* soup-message-headers: clarify that SoupServer has built-in Range handlingDan Winship2013-08-191-0/+22
|
* get: fix to not send the request twiceDan Winship2013-08-181-3/+2
|
* soup-message-server-io: handle unsatisfiable Range requests correctlyDan Winship2013-08-044-54/+165
| | | | | | | | | | soup_message_headers_get_ranges() doesn't check satisfiability (and can't without changing its API) so add a new soup_message_headers_get_ranges_internal(), and use that from soup-message-server-io so we can handle this properly. Test that it works from range-test. Pointed out on the mailing list by Kai Lüke.
* 2.43.5LIBSOUP_2_43_52.43.5Dan Winship2013-07-292-1/+30
|
* soup-session: Warn if [un]pausing messages from a sync sessionPhilip Withnall2013-07-281-0/+8
| | | | | | | | It was never meant to work, and can lead to weird behaviour and crashes. Also mention this more explicitly in the documentation for soup_session_[un]pause_message(). Helps: https://bugzilla.gnome.org/show_bug.cgi?id=703461
* [soup-logger] On response, always print headersAndres Gomez2013-07-151-7/+36
| | | | | | | | | | | | | | | SoupLogger won't print any information upon response until the "got-body" or "got-informational" signals are received. If the response message has been cancelled or requeued first, we miss the headers information, even when we would have been already able to print it. Now, upon response, if the logging has not yet happened when the "finished" signal is triggered, we do perform the logging then. https://bugzilla.gnome.org/show_bug.cgi?id=703200
* soup-uri: fix URI scheme parsingDan Winship2013-07-132-2/+21
| | | | | | | The URI grammar allows a scheme to have digits in it after the first character, and doesn't allow [.+-] in the first character. https://bugzilla.gnome.org/show_bug.cgi?id=703776
* tld-parser.py: Force file io to use utf-8Ross Lagerwall2013-07-131-2/+3
| | | | | | | | This fixes an issue where the build would fail with a UnicodeDecodeError when run in a non-utf8 locale (which is typical in build environments) using Python 3. https://bugzilla.gnome.org/show_bug.cgi?id=702534
* Use GProxyResolver for all proxy resolvingDan Winship2013-07-1318-416/+371
| | | | | | | | | | | | | Finish up the GProxyResolver porting started in 2.42 by removing all the non-GProxyResolver proxy code from SoupSocket and SoupConnection and implementing SoupSession:proxy-uri in terms of GSimpleProxyResolver. If the user adds a SoupProxyResolverDefault to the session, just use its GProxyResolver directly instead. If the user adds any other kind of SoupProxyURIResolver to the session, use the new SoupProxyResolverWrapper, which is a GProxyResolver that translates from SoupProxyURIResolver. https://bugzilla.gnome.org/show_bug.cgi?id=680273
* examples: port get to plain SoupSessionDan Winship2013-07-131-4/+16
|
* Rename SoupKnownStatusCode to SoupStatusDan Winship2013-07-136-8/+95
| | | | | | | | | | Rename SoupKnownStatusCode to SoupStatus (so that the type name matches the enum values), and then, for backward-compatibility, add a new SoupKnownStatusCode enum with equivalent values so that introspection-using code that was doing "SoupKnownStatusCode.OK", etc, will still work. https://bugzilla.gnome.org/show_bug.cgi?id=684409
* misc-test: add a test that preemptively cancelling a SoupRequest worksDan Winship2013-07-133-1/+20
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=637039
* build: use AC_CONFIG_AUX_DIR and update .gitignoreDan Winship2013-07-132-14/+4
| | | | | (Primarily to move automake 1.13's test-driver out of the top level so that the tests/ subdir autocompletes correctly again.)
* build: use AM_CPPFLAGS rather than INCLUDESDan Winship2013-07-103-5/+5
| | | | to make automake 1.13 happy
* 2.43.4LIBSOUP_2_43_42.43.4Dan Winship2013-07-092-1/+24
|
* soup-session: Force cleanup of REMOTE_DISCONNECTED conns for sync sessionsPhilip Withnall2013-07-051-0/+2
| | | | | | | | | get_connection() assumed that REMOTE_DISCONNECTED connections would get implicitly cleaned up elsewhere in the code, which is true for async sessions, but not sync ones. This could lead to connection exhaustion and hence hangs. Closes: https://bugzilla.gnome.org/show_bug.cgi?id=703463
* soup-session: Fix a crash when destroying a NULL unpause sourcePhilip Withnall2013-07-051-2/+1
| | | | Closes: https://bugzilla.gnome.org/show_bug.cgi?id=703461
* [examples] "get" uses -o to save to a fileAndres Gomez2013-07-031-4/+23
| | | | | | | | | | The "get" example is now able to handle a new "-o" parameter specifying the path of a file in which to write the received body of a "GET" operation. If the file exists, it will be overwritten. https://bugzilla.gnome.org/show_bug.cgi?id=703229
* [examples] Added SoupLogger to get exampleAndres Gomez2013-07-031-29/+19
| | | | | | | | Now, instead of printing the debug information manually we use SoupLogger for this with the "-d" flag. https://bugzilla.gnome.org/show_bug.cgi?id=703231
* Add/fix some annotationsDan Winship2013-06-298-40/+40
|
* replace g_hash_table_destroy with _unref for server queryBernhard Schuster2013-06-281-1/+1
| | | | | | | | This is necessary to allow passing the query on to another thread, given that the developer adds another reference. With the current destroy thing this will not work. https://bugzilla.gnome.org/show_bug.cgi?id=702793
* oops, addendum to previous commitDan Winship2013-06-081-2/+1
|
* use libfffi-based generic marshaller instead of glib-genmarshalOlivier Blin2013-06-0816-52/+34
| | | | | | | g_cclosure_marshal_generic() is the default signal handler starting from glib 2.29.12. libsoup already requires glib 2.33.1. https://bugzilla.gnome.org/show_bug.cgi?id=686042
* soup-socket: fix another leak in soup_socket_get_http_proxy_uri()Dan Winship2013-06-082-12/+32
| | | | | | | Add a test for the leak in bug 700472, which also turned up another leak. https://bugzilla.gnome.org/show_bug.cgi?id=700472
* soup-session: fix a concurrency bugDan Winship2013-05-311-1/+4
| | | | | | | | | soup_session_kick_queue() should have been locking conn_mutex around signalling conn_cond, since otherwise there's a race condition where it could signal just before someone else starts waiting. (In reality, this is unlikely to cause problems, since we tend to signal conn_cond more than is actually necessary. But maybe we'll get better about not doing that in the future.)
* 2.43.2LIBSOUP_2_43_22.43.2Dan Winship2013-05-282-1/+18
|
* Fix a slightly-erroneous comment in soup-auth-basic/soup-auth-ntlm.Dan Winship2013-05-222-2/+2
|
* multipart-test: fix quotes in messagesDan Winship2013-05-211-10/+10
|
* soup-socket: fix a memory leakRichard Röjfors2013-05-211-1/+4
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=700472
* soup-session: cope with the dummy TLS backend betterDan Winship2013-05-203-8/+214
| | | | | | | Make SoupSession handle GDummyTlsBackend a little better (and add a test for it). https://bugzilla.gnome.org/show_bug.cgi?id=700518
* soup-auth-manager: don't send host auth to proxy serversDan Winship2013-05-151-6/+8
| | | | | | | | | When sending a CONNECT request, don't include auth headers intended for the origin server. (And in particular, when doing NTLM through a proxy, don't assume that the NTLM auth succeeded because the proxy returned 200 to the CONNECT request.) Part of https://bugzilla.gnome.org/show_bug.cgi?id=698728
* tests: fix a memory leakDan Winship2013-05-151-2/+3
|
* Include string.h in soup-request-file.cErik van Pienbroek2013-05-091-0/+2
| | | | | | Resolves implicit declaration failures of functions like 'strchr' https://bugzilla.gnome.org/show_bug.cgi?id=700003
* 2.43.1LIBSOUP_2_43_12.43.1Dan Winship2013-04-302-1/+20
|
* build: update Makefile.glibDan Winship2013-04-191-11/+11
| | | | | | | | | If a SOURCES variable changes, we need to recheck the generated files, since a file may have been removed from SOURCES, but still be referenced in a previously-generated -enum-types.c file, etc. So make these generated files depend on Makefile. Also, update spacing of silent rules to match current automake.
* Fix build on Windows, deprecate soup-portability.hDan Winship2013-04-195-5/+10
| | | | | | | | | | | | | | | | | | soup-portability.h created portability problems (ha!) because the windows headers do "#define interface struct", conflicting with variable names elsewhere. The only thing that needed soup-portability.h in the public headers was soup-address.h, which uses struct sockaddr. But we can just do a forward declaration of that type rather than actually pulling in the headers. Then soup-address.h can stop including soup-portability.h, and we can use gio/gnetworking.h in the handful of other places that need networking-related includes. This may possibly break some other modules that depended on implicitly getting network includes as a side effect of including soup.h... https://bugzilla.gnome.org/show_bug.cgi?id=692134
* misc-test: skip the IPv6 server test if there's no IPv6 supportDan Winship2013-04-181-0/+5
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=698220
* soup-address: fix proxy enumerator implementationDan Winship2013-04-183-17/+27
| | | | | | | | | When creating a GProxyAddressEnumerator, the destination URI passed to it must include the port number, or the proxy may end up trying to connect to port 0. libsoup was omitting the port number when it was the default for the protocol. https://bugzilla.gnome.org/show_bug.cgi?id=698163