Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
N
nghttp2
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Libraries
nghttp2
Commits
c22cb53b
Commit
c22cb53b
authored
Nov 17, 2013
by
Tatsuhiro Tsujikawa
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
deflatehd: Require empty line for each HTTP/1 style header set
parent
8915e91b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
3 deletions
+8
-3
hdtest/deflatehd.c
hdtest/deflatehd.c
+8
-3
No files found.
hdtest/deflatehd.c
View file @
c22cb53b
...
...
@@ -225,14 +225,18 @@ static int perform_from_http1text(nghttp2_hd_context *deflater)
inputlen
+=
nv
->
namelen
+
nv
->
valuelen
;
}
deflate_hd
(
deflater
,
nva
,
nvlen
,
inputlen
,
seq
);
if
(
!
end
)
{
if
(
seq
>
0
)
{
printf
(
",
\n
"
);
}
deflate_hd
(
deflater
,
nva
,
nvlen
,
inputlen
,
seq
);
}
for
(
i
=
0
;
i
<
nvlen
;
++
i
)
{
free
(
nva
[
i
].
name
);
free
(
nva
[
i
].
value
);
}
if
(
end
)
break
;
printf
(
",
\n
"
);
++
seq
;
}
printf
(
"]
\n
"
);
...
...
@@ -272,7 +276,8 @@ static void print_help(void)
"]
\n
"
"
\n
"
"With -t option, the program can accept more familiar HTTP/1 style
\n
"
"header field block. Each header set is delimited by empty line:
\n
"
"header field block. Each header set must be followed by one empty
\n
"
"line:
\n
"
"
\n
"
"Example:
\n
"
":method: GET
\n
"
...
...
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