Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
varnish-cache
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
varnishcache
varnish-cache
Commits
4614058b
Commit
4614058b
authored
May 13, 2013
by
Poul-Henning Kamp
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Forgotten file in last commit:
Change args to http_FilterReq() to lower level.
parent
255fe951
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
11 deletions
+8
-11
cache_http.c
bin/varnishd/cache/cache_http.c
+8
-11
No files found.
bin/varnishd/cache/cache_http.c
View file @
4614058b
...
...
@@ -585,21 +585,18 @@ http_filterfields(struct http *to, const struct http *fm, unsigned how)
/*--------------------------------------------------------------------*/
void
http_FilterReq
(
const
struct
req
*
req
,
unsigned
how
)
http_FilterReq
(
struct
http
*
to
,
const
struct
http
*
fm
,
unsigned
how
)
{
struct
http
*
hp
;
hp
=
req
->
busyobj
->
bereq
;
CHECK_OBJ_NOTNULL
(
hp
,
HTTP_MAGIC
);
CHECK_OBJ_NOTNULL
(
to
,
HTTP_MAGIC
);
CHECK_OBJ_NOTNULL
(
fm
,
HTTP_MAGIC
);
http_linkh
(
hp
,
req
->
http
,
HTTP_HDR_METHOD
);
http_linkh
(
hp
,
req
->
http
,
HTTP_HDR_URL
);
http_linkh
(
to
,
fm
,
HTTP_HDR_METHOD
);
http_linkh
(
to
,
fm
,
HTTP_HDR_URL
);
if
(
how
==
HTTPH_R_FETCH
)
http_SetH
(
hp
,
HTTP_HDR_PROTO
,
"HTTP/1.1"
);
http_SetH
(
to
,
HTTP_HDR_PROTO
,
"HTTP/1.1"
);
else
http_linkh
(
hp
,
req
->
http
,
HTTP_HDR_PROTO
);
http_filterfields
(
hp
,
req
->
http
,
how
);
http_PrintfHeader
(
hp
,
"X-Varnish: %u"
,
req
->
vsl
->
wid
&
VSL_IDENTMASK
);
http_linkh
(
to
,
fm
,
HTTP_HDR_PROTO
);
http_filterfields
(
to
,
fm
,
how
);
}
/*--------------------------------------------------------------------*/
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment