Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
TLMSP curl
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
CYBER - Cyber Security
TS 103 523 MSP
TLMSP
TLMSP curl
Commits
5cd4c3ed
Commit
5cd4c3ed
authored
24 years ago
by
Daniel Stenberg
Browse files
Options
Downloads
Patches
Plain Diff
return from transfer when all headers have been received and nobody is set,
as is the case when doing HEAD requests
parent
147a6730
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
lib/transfer.c
+14
-7
14 additions, 7 deletions
lib/transfer.c
with
14 additions
and
7 deletions
lib/transfer.c
+
14
−
7
View file @
5cd4c3ed
...
...
@@ -338,6 +338,18 @@ _Transfer(struct connectdata *c_conn)
return
urg
;
data
->
header_size
+=
p
-
data
->
headerbuff
;
/*
* end-of-headers.
*
* If we requested a "no body" and this isn't a "close"
* connection, this is a good time to get out and return
* home.
*/
if
(
!
conn
->
bits
.
close
&&
data
->
bits
.
no_body
)
return
CURLE_OK
;
break
;
/* exit header line loop */
}
...
...
@@ -473,11 +485,6 @@ _Transfer(struct connectdata *c_conn)
is non-headers. */
if
(
str
&&
!
header
&&
((
signed
int
)
nread
>
0
))
{
/*
* If we requested a HTTP header, this might be a good time to get
* out and return home.
*/
if
(
0
==
bodywrites
)
{
/* These checks are only made the first time we are about to
write a piece of the body */
...
...
@@ -539,7 +546,7 @@ _Transfer(struct connectdata *c_conn)
if
(
conn
->
bits
.
chunk
)
{
/*
* Bless me father for I have sinned. Here come a chunked
* Bless me father for I have sinned. Here come
s
a chunked
* transfer flying and we need to decode this properly. While
* the name says read, this function both reads and writes away
* the data. The returned 'nread' holds the number of actual
...
...
@@ -553,7 +560,7 @@ _Transfer(struct connectdata *c_conn)
/* we're done reading chunks! */
keepon
&=
~
KEEP_READ
;
/* read no more */
/* There are now
(~res)
bytes at the end of the str buffer
/* There are now
possibly
bytes at the end of the str buffer
that weren't written to the client, but we don't care
about them right now. */
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment