~ubuntu-branches/ubuntu/precise/orbit2/precise

« back to all changes in this revision

Viewing changes to src/orb/orb-core/orbhttp.c

  • Committer: Bazaar Package Importer
  • Author(s): Sebastien Bacher
  • Date: 2008-09-24 22:30:20 UTC
  • mfrom: (1.2.16 upstream)
  • Revision ID: james.westby@ubuntu.com-20080924223020-gaasw9ry7s363vii
Tags: 1:2.14.16-0ubuntu1
New upstream version

Show diffs side-by-side

added added

removed removed

Lines of Context:
57
57
#  include <sys/select.h>
58
58
#endif
59
59
 
60
 
#if !defined(strncasecmp)
61
 
#  define strncasecmp _strnicmp
62
 
#endif
63
 
 
64
60
#define CHECK_URI(str) \
65
61
(!strncmp(str, "IOR:", strlen("IOR:")) \
66
62
 || !strncmp(str, "iiop://", strlen("iiop://")) \
515
511
        }
516
512
        if ((*cur != 0) && (*cur != ' ') && (*cur != '\t')) return;
517
513
        ctxt->returnValue = ret;
518
 
    } else if (!strncasecmp(line, "content-type:", 13)
519
 
               || !strncasecmp(line, "contenttype:", 12)) {
 
514
    } else if (!g_ascii_strncasecmp(line, "content-type:", 13)
 
515
               || !g_ascii_strncasecmp(line, "contenttype:", 12)) {
520
516
        cur = strchr(cur, ':') + 1;
521
517
        if (ctxt->contentType != NULL) return;
522
518
        while ((*cur == ' ') || (*cur == '\t')) cur++;
523
519
        ctxt->contentType = g_strdup(cur);
524
 
    } else if (!strncasecmp(line, "Location:", 9)) {
 
520
    } else if (!g_ascii_strncasecmp(line, "Location:", 9)) {
525
521
        cur += 9;
526
522
        while ((*cur == ' ') || (*cur == '\t')) cur++;
527
523
        if (ctxt->location != NULL)