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
ae29a70d
Commit
ae29a70d
authored
Sep 16, 2022
by
AlveElde
Committed by
Poul-Henning Kamp
Nov 29, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
varnishtest: set -nolen on tx[req|resp] C-L or T-E
parent
aac3538d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
1 deletion
+4
-1
b00037.vtc
bin/varnishtest/tests/b00037.vtc
+1
-1
vtc_http.c
bin/varnishtest/vtc_http.c
+3
-0
No files found.
bin/varnishtest/tests/b00037.vtc
View file @
ae29a70d
...
...
@@ -13,7 +13,7 @@ varnish v1 -vsl_catchup
varnish v1 -expect client_req_400 == 1
client c1 {
txreq -method POST -hdr "Content-Length: 12" -bodylen 12
txreq -method POST -hdr "Content-Length: 12" -
hdr "Content-Length: 12" -
bodylen 12
rxresp
expect resp.status == 400
} -run
...
...
bin/varnishtest/vtc_http.c
View file @
ae29a70d
...
...
@@ -786,6 +786,9 @@ http_tx_parse_args(char * const *av, struct vtclog *vl, struct http *hp,
}
else
if
(
!
strcmp
(
*
av
,
"-nohost"
))
{
nohost
=
1
;
}
else
if
(
!
strcmp
(
*
av
,
"-hdr"
))
{
if
(
!
strncasecmp
(
av
[
1
],
"Content-Length:"
,
15
)
||
!
strncasecmp
(
av
[
1
],
"Transfer-Encoding:"
,
18
))
nolen
=
1
;
if
(
!
strncasecmp
(
av
[
1
],
"Host:"
,
5
))
nohost
=
1
;
VSB_printf
(
hp
->
vsb
,
"%s%s"
,
av
[
1
],
nl
);
...
...
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