Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
git2
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lvzhengyang
git2
Commits
d215cf24
Commit
d215cf24
authored
Sep 28, 2011
by
Vicent Marti
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
http-parser: More type changes
parent
59903b1f
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
deps/http-parser/http_parser.c
+3
-3
deps/http-parser/http_parser.h
+1
-1
No files found.
deps/http-parser/http_parser.c
View file @
d215cf24
...
...
@@ -367,8 +367,8 @@ size_t http_parser_execute (http_parser *parser,
size_t
to_read
;
enum
state
state
;
enum
header_states
header_state
;
uint64
_t
index
=
parser
->
index
;
uint32
_t
nread
=
parser
->
nread
;
size
_t
index
=
parser
->
index
;
size
_t
nread
=
parser
->
nread
;
const
char
*
header_field_mark
,
*
header_value_mark
,
*
url_mark
;
const
char
*
matcher
;
...
...
@@ -1679,7 +1679,7 @@ size_t http_parser_execute (http_parser *parser,
p
+=
to_read
-
1
;
}
if
(
to_read
==
(
size_t
)
parser
->
content_length
)
{
if
(
(
signed
)
to_read
==
parser
->
content_length
)
{
state
=
s_chunk_data_almost_done
;
}
...
...
deps/http-parser/http_parser.h
View file @
d215cf24
...
...
@@ -201,7 +201,7 @@ enum http_errno {
struct
http_parser
{
/** PRIVATE **/
uint32
_t
nread
;
size
_t
nread
;
int64_t
content_length
;
unsigned
char
type
;
...
...
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