Mercurial > pidgin.yaz
comparison libpurple/protocols/gg/lib/http.c @ 18398:16bdcffb1c62
Use the glib strcasecmp functions everywhere, as we've had reports of
problems on Windows (with Visual Studio) and the Maemo platform. This way
we don't need to worry about where to include <strings.h>.
author | Richard Laager <rlaager@wiktel.com> |
---|---|
date | Sun, 01 Jul 2007 01:41:57 +0000 |
parents | 5fe8042783c1 |
children | b9f003952c40 |
comparison
equal
deleted
inserted
replaced
18397:e122b631a657 | 18398:16bdcffb1c62 |
---|---|
347 *tmp = 0; | 347 *tmp = 0; |
348 | 348 |
349 gg_debug(GG_DEBUG_MISC, "=> -----BEGIN-HTTP-HEADER-----\n%s\n=> -----END-HTTP-HEADER-----\n", h->header); | 349 gg_debug(GG_DEBUG_MISC, "=> -----BEGIN-HTTP-HEADER-----\n%s\n=> -----END-HTTP-HEADER-----\n", h->header); |
350 | 350 |
351 while (line) { | 351 while (line) { |
352 if (!strncasecmp(line, "Content-length: ", 16)) { | 352 if (!g_ascii_strncasecmp(line, "Content-length: ", 16)) { |
353 h->body_size = atoi(line + 16); | 353 h->body_size = atoi(line + 16); |
354 } | 354 } |
355 line = strchr(line, '\n'); | 355 line = strchr(line, '\n'); |
356 if (line) | 356 if (line) |
357 line++; | 357 line++; |