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
1723912f
Commit
1723912f
authored
Sep 03, 2013
by
Tatsuhiro Tsujikawa
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Call nghttp2_hd_end_headers from nghttp2_hd_deflate_hd
parent
dd415133
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
0 deletions
+15
-0
lib/nghttp2_hd.c
lib/nghttp2_hd.c
+1
-0
lib/nghttp2_hd.h
lib/nghttp2_hd.h
+14
-0
No files found.
lib/nghttp2_hd.c
View file @
1723912f
...
@@ -874,6 +874,7 @@ ssize_t nghttp2_hd_deflate_hd(nghttp2_hd_context *deflater,
...
@@ -874,6 +874,7 @@ ssize_t nghttp2_hd_deflate_hd(nghttp2_hd_context *deflater,
nghttp2_hd_entry
*
ent
=
deflater
->
hd_table
[
i
];
nghttp2_hd_entry
*
ent
=
deflater
->
hd_table
[
i
];
ent
->
flags
&=
~
(
NGHTTP2_HD_FLAG_EMIT
|
NGHTTP2_HD_FLAG_IMPLICIT_EMIT
);
ent
->
flags
&=
~
(
NGHTTP2_HD_FLAG_EMIT
|
NGHTTP2_HD_FLAG_IMPLICIT_EMIT
);
}
}
nghttp2_hd_end_headers
(
deflater
);
return
offset
-
nv_offset
;
return
offset
-
nv_offset
;
fail:
fail:
deflater
->
bad
=
1
;
deflater
->
bad
=
1
;
...
...
lib/nghttp2_hd.h
View file @
1723912f
...
@@ -164,6 +164,14 @@ void nghttp2_hd_inflate_free(nghttp2_hd_context *inflater);
...
@@ -164,6 +164,14 @@ void nghttp2_hd_inflate_free(nghttp2_hd_context *inflater);
* |*buf_ptr| may change. |*buf_ptr| and |*buflen_ptr| are updated
* |*buf_ptr| may change. |*buf_ptr| and |*buflen_ptr| are updated
* accordingly.
* accordingly.
*
*
* This function copies necessary data into |*buf_ptr|. After this
* function returns, it is safe to delete the |nva|.
*
* TODO: The rest of the code call nghttp2_hd_end_headers() after this
* call, but it is just a regacy of the first implementation. Now it
* is called in this function and the caller does not need to call it
* by itself.
*
* This function returns the number of bytes outputted if it succeeds,
* This function returns the number of bytes outputted if it succeeds,
* or one of the following negative error codes:
* or one of the following negative error codes:
*
*
...
@@ -183,6 +191,12 @@ ssize_t nghttp2_hd_deflate_hd(nghttp2_hd_context *deflater,
...
@@ -183,6 +191,12 @@ ssize_t nghttp2_hd_deflate_hd(nghttp2_hd_context *deflater,
* result on successful decompression. The caller must free |*nva_ptr|
* result on successful decompression. The caller must free |*nva_ptr|
* using nghttp2_nv_array_del().
* using nghttp2_nv_array_del().
*
*
* The |*nva_ptr| includes pointers to the memory region in the
* |in|. The caller must retain the |in| while the |*nva_ptr| is
* used. After the use of |*nva_ptr| is over, if the caller intends to
* inflate another set of headers, the caller must call
* nghttp2_hd_end_headers().
*
* This function returns the number of name/value pairs in |*nva_ptr|
* This function returns the number of name/value pairs in |*nva_ptr|
* if it succeeds, or one of the following negative error codes:
* if it succeeds, or one of the following negative error codes:
*
*
...
...
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