diff options
author | Dan Winship <danw@gnome.org> | 2013-08-18 11:23:26 -0400 |
---|---|---|
committer | Dan Winship <danw@gnome.org> | 2013-08-18 11:23:26 -0400 |
commit | 761ab8aac93e85cadc1c32e1abbd9b87060a65f7 (patch) | |
tree | f5657268decbbfe0065aa90d19947f90a741cf27 /examples/get.c | |
parent | 8524d46134bce62ee6d8a534a56c24da90651b9c (diff) | |
download | libsoup-761ab8aac93e85cadc1c32e1abbd9b87060a65f7.tar.gz |
get: fix to not send the request twice
Diffstat (limited to 'examples/get.c')
-rw-r--r-- | examples/get.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/examples/get.c b/examples/get.c index a74991dc..a8888d49 100644 --- a/examples/get.c +++ b/examples/get.c @@ -35,9 +35,8 @@ get_url (const char *url) g_object_ref (msg); soup_session_queue_message (session, msg, finished, loop); g_main_loop_run (loop); - } - - soup_session_send_message (session, msg); + } else + soup_session_send_message (session, msg); name = soup_message_get_uri (msg)->path; |