577 const char *stype; |
577 const char *stype; |
578 if(type == DAV_HTTPS_PROXY) { |
578 if(type == DAV_HTTPS_PROXY) { |
579 stype = "https"; |
579 stype = "https"; |
580 } else if(type == DAV_HTTP_PROXY) { |
580 } else if(type == DAV_HTTP_PROXY) { |
581 stype = "http"; |
581 stype = "http"; |
|
582 } else { |
|
583 fprintf(stderr, "unknown proxy type\n"); |
|
584 return 1; |
582 } |
585 } |
583 |
586 |
584 if(!proxy) { |
587 if(!proxy) { |
585 // no xml error - so report this directly via fprintf |
588 // no xml error - so report this directly via fprintf |
586 fprintf(stderr, "no memory reserved for %s proxy.\n", stype); |
589 fprintf(stderr, "no memory reserved for %s proxy.\n", stype); |