X-Git-Url: http://git.dolda2000.com/gitweb/?a=blobdiff_plain;f=clients%2Fgtk2%2Fhublist.c;h=ff9416101807a3cc2ab78b7116ca48719a61265f;hb=78ba3ee1d71032a1325036d5cefa8d0549d76ccd;hp=7342945ac722c74bad929911e9461a81792efa7b;hpb=302a260054ea38d3cb97be6d1a3010082c09265d;p=doldaconnect.git diff --git a/clients/gtk2/hublist.c b/clients/gtk2/hublist.c index 7342945..ff94161 100644 --- a/clients/gtk2/hublist.c +++ b/clients/gtk2/hublist.c @@ -200,6 +200,7 @@ void fetchhublist(char *url, regex_t *flt) msgbox(GTK_MESSAGE_ERROR, GTK_BUTTONS_OK, _("Could not read hublist from server: %s"), strerror(errno)); return; } + hc->autoredir = 1; state = 0; settags(); gtk_widget_show(main_pubhubbarbox); @@ -210,6 +211,7 @@ void fetchhublist(char *url, regex_t *flt) len = strlen(url); p = url + len; if((len > 4) && !strncmp(p - 4, ".bz2", 4)) { + /* Because using Transfer-Encoding would just be too good! */ p -= 4; len -= 4; bzs = memset(smalloc(sizeof(*bzs)), 0, sizeof(*bzs)); @@ -222,6 +224,7 @@ void fetchhublist(char *url, regex_t *flt) } } if((len > 4) && !strncmp(p - 4, ".xml", 4)) { + /* Because using Content-Type would just be too good! */ p -= 4; len -= 4; handler = pubhubxmlhandler;