~chtsanti/squid/icap-max-connections

« back to all changes in this revision

Viewing changes to src/ICAP/ICAPOptXact.cc

  • Committer: Christos Tsantilas
  • Date: 2009-02-18 22:18:35 UTC
  • mfrom: (9294.1.215 trunk)
  • Revision ID: chtsanti@users.sourceforge.net-20090218221835-lfxxe3bs8uhu0b1h
MergeĀ fromĀ trunk

Show diffs side-by-side

added added

removed removed

Lines of Context:
44
44
{
45
45
    const Adaptation::Service &s = service();
46
46
    const String uri = s.cfg().uri;
47
 
    buf.Printf("OPTIONS %.*s ICAP/1.0\r\n", uri.size(), uri.rawBuf());
 
47
    buf.Printf("OPTIONS " SQUIDSTRINGPH " ICAP/1.0\r\n", SQUIDSTRINGPRINT(uri));
48
48
    const String host = s.cfg().host;
49
 
    buf.Printf("Host: %.*s:%d\r\n", host.size(), host.rawBuf(), s.cfg().port);
 
49
    buf.Printf("Host: " SQUIDSTRINGPH ":%d\r\n", SQUIDSTRINGPRINT(host), s.cfg().port);
50
50
    buf.append(ICAP::crlf, 2);
51
51
}
52
52