Permalink
Browse files

Polish

  • Loading branch information...
fgsch committed Jan 4, 2019
1 parent fb96197 commit 032db57bfb1bb76e1d38316bcffd581be1b102f4
Showing with 2 additions and 4 deletions.
  1. +1 −2 bin/varnishd/cache/cache_vrt_filter.c
  2. +1 −2 bin/varnishd/http2/cache_http2_proto.c
@@ -354,7 +354,6 @@ static void v_matchproto_(filter_list_t)
resp_default_filter_list(void *arg, struct vsb *vsb)
{
struct req *req;
const char *r;

CAST_OBJ_NOTNULL(req, arg, REQ_MAGIC);

@@ -369,7 +368,7 @@ resp_default_filter_list(void *arg, struct vsb *vsb)

if (cache_param->http_range_support &&
http_GetStatus(req->resp) == 200 &&
http_GetHdr(req->http, H_Range, &r))
http_GetHdr(req->http, H_Range, NULL))
VSB_cat(vsb, " range");
}

@@ -561,7 +561,6 @@ h2_end_headers(struct worker *wrk, struct h2_sess *h2,
struct req *req, struct h2_req *r2)
{
h2_error h2e;
const char *b;

ASSERT_RXTHR(h2);
assert(r2->state == H2_S_OPEN);
@@ -588,7 +587,7 @@ h2_end_headers(struct worker *wrk, struct h2_sess *h2,
http_CollectHdrSep(req->http, H_Cookie, "; "); // rfc7540,l,3114,3120

if (req->req_body_status == REQ_BODY_INIT) {
if (!http_GetHdr(req->http, H_Content_Length, &b))
if (!http_GetHdr(req->http, H_Content_Length, NULL))
req->req_body_status = REQ_BODY_WITHOUT_LEN;
else
req->req_body_status = REQ_BODY_WITH_LEN;

0 comments on commit 032db57

Please sign in to comment.