Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
M
mongoose
Project
Project
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
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
esp
mongoose
Commits
eedfedd1
Commit
eedfedd1
authored
Oct 01, 2013
by
Sergey Lyubka
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added reference to a relevant pull request in getreq() comment
parent
87d841d8
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
0 deletions
+2
-0
mongoose.c
build/src/mongoose.c
+1
-0
mongoose.c
mongoose.c
+1
-0
No files found.
build/src/mongoose.c
View file @
eedfedd1
...
@@ -3649,6 +3649,7 @@ static int getreq(struct mg_connection *conn, char *ebuf, size_t ebuf_len) {
...
@@ -3649,6 +3649,7 @@ static int getreq(struct mg_connection *conn, char *ebuf, size_t ebuf_len) {
// The reason for treating GET and POST/PUT differently is that libraries
// The reason for treating GET and POST/PUT differently is that libraries
// like jquery do not set Content-Length in GET requests, and we don't
// like jquery do not set Content-Length in GET requests, and we don't
// want mg_read() to hang waiting until socket is timed out.
// want mg_read() to hang waiting until socket is timed out.
// See https://github.com/cesanta/mongoose/pull/121 for more.
conn
->
content_len
=
INT64_MAX
;
conn
->
content_len
=
INT64_MAX
;
if
(
!
mg_strcasecmp
(
conn
->
request_info
.
request_method
,
"GET"
))
{
if
(
!
mg_strcasecmp
(
conn
->
request_info
.
request_method
,
"GET"
))
{
conn
->
content_len
=
0
;
conn
->
content_len
=
0
;
...
...
mongoose.c
View file @
eedfedd1
...
@@ -4960,6 +4960,7 @@ static int getreq(struct mg_connection *conn, char *ebuf, size_t ebuf_len) {
...
@@ -4960,6 +4960,7 @@ static int getreq(struct mg_connection *conn, char *ebuf, size_t ebuf_len) {
// The reason for treating GET and POST/PUT differently is that libraries
// The reason for treating GET and POST/PUT differently is that libraries
// like jquery do not set Content-Length in GET requests, and we don't
// like jquery do not set Content-Length in GET requests, and we don't
// want mg_read() to hang waiting until socket is timed out.
// want mg_read() to hang waiting until socket is timed out.
// See https://github.com/cesanta/mongoose/pull/121 for more.
conn
->
content_len
=
INT64_MAX
;
conn
->
content_len
=
INT64_MAX
;
if
(
!
mg_strcasecmp
(
conn
->
request_info
.
request_method
,
"GET"
))
{
if
(
!
mg_strcasecmp
(
conn
->
request_info
.
request_method
,
"GET"
))
{
conn
->
content_len
=
0
;
conn
->
content_len
=
0
;
...
...
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