X-Git-Url: http://git.dolda2000.com/gitweb/?a=blobdiff_plain;f=clients%2Fgtk2%2Fhublist.c;h=74910e576243610b2a5d22c35ea52bde3ca8a1ed;hb=f966ec569e6f045426492efda0f1140ffa7b582b;hp=849f4ea3edac4f5acf8dbc420b55410316e6546d;hpb=37634852a00d25705e1a8d9caddc77dd193f2857;p=doldaconnect.git diff --git a/clients/gtk2/hublist.c b/clients/gtk2/hublist.c index 849f4ea..74910e5 100644 --- a/clients/gtk2/hublist.c +++ b/clients/gtk2/hublist.c @@ -1,6 +1,6 @@ /* * Dolda Connect - Modular multiuser Direct Connect-style client - * Copyright (C) 2007 Fredrik Tolf (fredrik@dolda2000.com) + * Copyright (C) 2007 Fredrik Tolf * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -210,6 +210,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 +223,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;