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
5b9a57f5
Commit
5b9a57f5
authored
16 years ago
by
Dan Fandrich
Browse files
Options
Downloads
Patches
Plain Diff
Get rid of some more code in the CURL_DISABLE_HTTP case
parent
ba9963b8
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
+12
-1
12 additions, 1 deletion
lib/transfer.c
with
12 additions
and
1 deletion
lib/transfer.c
+
12
−
1
View file @
5b9a57f5
...
...
@@ -440,6 +440,7 @@ static CURLcode readwrite_data(struct SessionHandle *data,
is non-headers. */
if
(
k
->
str
&&
!
k
->
header
&&
(
nread
>
0
||
is_empty_data
))
{
#ifndef CURL_DISABLE_HTTP
if
(
0
==
k
->
bodywrites
&&
!
is_empty_data
)
{
/* These checks are only made the first time we are about to
write a piece of the body */
...
...
@@ -501,6 +502,7 @@ static CURLcode readwrite_data(struct SessionHandle *data,
}
/* this is HTTP */
}
/* this is the first time we write a body part */
#endif
/* CURL_DISABLE_HTTP */
k
->
bodywrites
++
;
/* pass data to the debug function before it gets "dechunked" */
...
...
@@ -883,6 +885,7 @@ static CURLcode readwrite_headers(struct SessionHandle *data,
data
->
info
.
header_size
+=
(
long
)
headerlen
;
data
->
req
.
headerbytecount
+=
(
long
)
headerlen
;
#ifndef CURL_DISABLE_HTTP
data
->
req
.
deductheadercount
=
(
100
<=
k
->
httpcode
&&
199
>=
k
->
httpcode
)
?
data
->
req
.
headerbytecount
:
0
;
...
...
@@ -893,7 +896,6 @@ static CURLcode readwrite_headers(struct SessionHandle *data,
*
stop_reading
=
TRUE
;
}
#ifndef CURL_DISABLE_HTTP
if
(
!*
stop_reading
)
{
/* Curl_http_auth_act() checks what authentication methods
* that are available and decides which one (if any) to
...
...
@@ -2171,6 +2173,14 @@ CURLcode Curl_follow(struct SessionHandle *data,
here */
followtype
type
)
/* see transfer.h */
{
#ifdef CURL_DISABLE_HTTP
(
void
)
data
;
(
void
)
newurl
;
(
void
)
type
;
/* Location: following will not happen when HTTP is disabled */
return
CURLE_TOO_MANY_REDIRECTS
;
#else
/* Location: redirect */
bool
disallowport
=
FALSE
;
...
...
@@ -2358,6 +2368,7 @@ CURLcode Curl_follow(struct SessionHandle *data,
Curl_pgrsResetTimes
(
data
);
return
CURLE_OK
;
#endif
/* CURL_DISABLE_HTTP */
}
static
CURLcode
...
...
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