~rousskov/squid/3p2-ecap

« back to all changes in this revision

Viewing changes to src/http.cc

  • Committer: Alex Rousskov
  • Date: 2011-03-09 19:02:12 UTC
  • mfrom: (11115.4.31 trunk)
  • Revision ID: rousskov@measurement-factory.com-20110309190212-zi3f02hb2wnvglwg
Merged from parent (trunk 11270, circa 3.2.0.5+)

Show diffs side-by-side

added added

removed removed

Lines of Context:
717
717
 
718
718
    newrep->removeStaleWarnings();
719
719
 
720
 
    if (newrep->sline.protocol == PROTO_HTTP && newrep->sline.status >= 100 && newrep->sline.status < 200) {
 
720
    if (newrep->sline.protocol == AnyP::PROTO_HTTP && newrep->sline.status >= 100 && newrep->sline.status < 200) {
721
721
        handle1xx(newrep);
722
722
        ctx_exit(ctx);
723
723
        return;
724
724
    }
725
725
 
726
726
    flags.chunked = 0;
727
 
    if (newrep->sline.protocol == PROTO_HTTP && newrep->header.chunked()) {
 
727
    if (newrep->sline.protocol == AnyP::PROTO_HTTP && newrep->header.chunked()) {
728
728
        flags.chunked = 1;
729
729
        httpChunkDecoder = new ChunkedCodingParser;
730
730
    }
769
769
#if USE_HTTP_VIOLATIONS
770
770
    // check whether the 1xx response forwarding is allowed by squid.conf
771
771
    if (Config.accessList.reply) {
772
 
        ACLFilledChecklist ch(Config.accessList.reply, request, NULL);
 
772
        ACLFilledChecklist ch(Config.accessList.reply, originalRequest(), NULL);
773
773
        ch.reply = HTTPMSGLOCK(reply);
774
774
        if (!ch.fastCheck()) { // TODO: support slow lookups?
775
775
            debugs(11, 3, HERE << "ignoring denied 1xx");
1816
1816
 
1817
1817
    /* append Front-End-Https */
1818
1818
    if (flags.front_end_https) {
1819
 
        if (flags.front_end_https == 1 || request->protocol == PROTO_HTTPS)
 
1819
        if (flags.front_end_https == 1 || request->protocol == AnyP::PROTO_HTTPS)
1820
1820
            hdr_out->putStr(HDR_FRONT_END_HTTPS, "On");
1821
1821
    }
1822
1822
 
2208
2208
        return false;
2209
2209
    }
2210
2210
 
2211
 
    ACLFilledChecklist ch(Config.accessList.brokenPosts, request, NULL);
 
2211
    ACLFilledChecklist ch(Config.accessList.brokenPosts, originalRequest(), NULL);
2212
2212
    if (!ch.fastCheck()) {
2213
2213
        debugs(11, 5, HERE << "didn't match brokenPosts");
2214
2214
        return false;