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
f52ce734
Commit
f52ce734
authored
Feb 22, 2019
by
Nils Goroll
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
polish
parent
dd45b549
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
11 deletions
+11
-11
vtc_http.c
bin/varnishtest/vtc_http.c
+11
-11
No files found.
bin/varnishtest/vtc_http.c
View file @
f52ce734
...
...
@@ -594,17 +594,16 @@ static void
http_swallow_body
(
struct
http
*
hp
,
char
*
const
*
hh
,
int
body
)
{
char
*
p
;
int
i
,
l
,
ll
;
int
i
,
l
;
ll
=
0
;
p
=
http_find_header
(
hh
,
"transfer-encoding"
);
if
(
p
!=
NULL
&&
!
strcasecmp
(
p
,
"chunked"
))
{
while
(
http_rxchunk
(
hp
)
>
0
)
continue
;
vtc_dump
(
hp
->
vl
,
4
,
"body"
,
hp
->
body
,
ll
)
;
ll
=
hp
->
rxbuf
+
hp
->
prxbuf
-
hp
->
body
;
hp
->
bodyl
=
l
l
;
bprintf
(
hp
->
bodylen
,
"%d"
,
l
l
);
l
=
hp
->
rxbuf
+
hp
->
prxbuf
-
hp
->
body
;
vtc_dump
(
hp
->
vl
,
4
,
"body"
,
hp
->
body
,
l
)
;
hp
->
bodyl
=
l
;
bprintf
(
hp
->
bodylen
,
"%d"
,
l
);
return
;
}
p
=
http_find_header
(
hh
,
"content-length"
);
...
...
@@ -617,17 +616,18 @@ http_swallow_body(struct http *hp, char * const *hh, int body)
bprintf
(
hp
->
bodylen
,
"%d"
,
l
);
return
;
}
l
=
0
;
if
(
body
)
{
do
{
i
=
http_rxchar
(
hp
,
1
,
1
);
if
(
i
<
0
)
return
;
l
l
+=
i
;
l
+=
i
;
}
while
(
i
>
0
);
vtc_dump
(
hp
->
vl
,
4
,
"rxeof"
,
hp
->
body
,
l
l
);
vtc_dump
(
hp
->
vl
,
4
,
"rxeof"
,
hp
->
body
,
l
);
}
hp
->
bodyl
=
l
l
;
bprintf
(
hp
->
bodylen
,
"%d"
,
l
l
);
hp
->
bodyl
=
l
;
bprintf
(
hp
->
bodylen
,
"%d"
,
l
);
}
/**********************************************************************
...
...
@@ -1764,7 +1764,7 @@ cmd_http_settings(CMD_ARGS)
static
void
cmd_http_stream
(
CMD_ARGS
)
{
struct
http
*
hp
=
(
struct
http
*
)
priv
;
struct
http
*
hp
;
CAST_OBJ_NOTNULL
(
hp
,
priv
,
HTTP_MAGIC
);
if
(
!
hp
->
h2
)
{
vtc_log
(
hp
->
vl
,
4
,
"Not in H/2 mode, do what's needed"
);
...
...
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