Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 311927 | Differences between
and this patch

Collapse All | Expand All

(-)squid-3.1.5.orig/src/HttpReply.cc (-2 / +2 lines)
Lines 607-612 HttpReply * Link Here
607
HttpReply::clone() const
607
HttpReply::clone() const
608
{
608
{
609
    HttpReply *rep = new HttpReply();
609
    HttpReply *rep = new HttpReply();
610
    rep->sline = sline; // used in hdrCacheInit() call above
610
    rep->header.append(&header);
611
    rep->header.append(&header);
611
    rep->hdrCacheInit();
612
    rep->hdrCacheInit();
612
    rep->hdr_sz = hdr_sz;
613
    rep->hdr_sz = hdr_sz;
Lines 615-622 HttpReply::clone() const Link Here
615
    rep->body_pipe = body_pipe;
616
    rep->body_pipe = body_pipe;
616
617
617
    rep->protocol = protocol;
618
    rep->protocol = protocol;
618
    rep->sline = sline;
619
    // keep_alive is handled in HttpMsg::hdrCacheInit()
619
    rep->keep_alive = keep_alive;
620
    return rep;
620
    return rep;
621
}
621
}
622
622
(-)squid-3.1.5.orig/src/HttpRequest.cc (-1 / +2 lines)
Lines 188-194 HttpRequest::clone() const Link Here
188
    // urlPath handled in ctor
188
    // urlPath handled in ctor
189
    copy->canonical = canonical ? xstrdup(canonical) : NULL;
189
    copy->canonical = canonical ? xstrdup(canonical) : NULL;
190
190
191
    copy->range = range ? new HttpHdrRange(*range) : NULL;
191
    // range handled in hdrCacheInit()
192
    copy->ims = ims;
192
    copy->ims = ims;
193
    copy->imslen = imslen;
193
    copy->imslen = imslen;
194
    copy->max_forwards = max_forwards;
194
    copy->max_forwards = max_forwards;
Lines 358-363 HttpRequest::hdrCacheInit() Link Here
358
{
358
{
359
    HttpMsg::hdrCacheInit();
359
    HttpMsg::hdrCacheInit();
360
360
361
    assert(!range);
361
    range = header.getRange();
362
    range = header.getRange();
362
}
363
}
363
364

Return to bug 311927