Revision: 1533 http://geany-plugins.svn.sourceforge.net/geany-plugins/?rev=1533&view=re... Author: frlan Date: 2010-08-27 02:11:56 +0000 (Fri, 27 Aug 2010)
Log Message: ----------- Updatechecker: Submit an user agent at request
Modified Paths: -------------- trunk/geany-plugins/updatechecker/ChangeLog trunk/geany-plugins/updatechecker/src/updatechecker.c
Modified: trunk/geany-plugins/updatechecker/ChangeLog =================================================================== --- trunk/geany-plugins/updatechecker/ChangeLog 2010-08-25 23:19:46 UTC (rev 1532) +++ trunk/geany-plugins/updatechecker/ChangeLog 2010-08-27 02:11:56 UTC (rev 1533) @@ -1,3 +1,8 @@ +2010-08-27 Frank Lanitz <frank(at)frank(dot)uvena(dot)de> + + * src/updatechecker.c: Submit an user agent on request. + + 2010-08-26 Frank Lanitz <frank(at)frank(dot)uvena(dot)de>
* src/updatechecker.c: Cleaning up the code and removing redundant code
Modified: trunk/geany-plugins/updatechecker/src/updatechecker.c =================================================================== --- trunk/geany-plugins/updatechecker/src/updatechecker.c 2010-08-25 23:19:46 UTC (rev 1532) +++ trunk/geany-plugins/updatechecker/src/updatechecker.c 2010-08-27 02:11:56 UTC (rev 1533) @@ -73,11 +73,17 @@ { SoupSession *soup; SoupMessage *msg; + gchar *user_agent = g_strconcat("Updatechecker ", VERSION, " at Geany ", + GEANY_VERSION, NULL);
g_message("Starting checking for updates"); - soup = soup_session_async_new (); + soup = soup_session_async_new_with_options(SOUP_SESSION_USER_AGENT, + user_agent, NULL); + + g_free(user_agent); + msg = soup_message_new ("GET", "http://geany.org/service/version.php"); - + soup_session_queue_message (soup, msg, update_check_result_cb, GINT_TO_POINTER(type)); }
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.