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
9df8f9a6
Commit
9df8f9a6
authored
21 years ago
by
Daniel Stenberg
Browse files
Options
Downloads
Patches
Plain Diff
builds warning-free with -Wshadow now
parent
5eee801d
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/http.c
+2
-3
2 additions, 3 deletions
lib/http.c
with
2 additions
and
3 deletions
lib/http.c
+
2
−
3
View file @
9df8f9a6
...
...
@@ -1079,7 +1079,7 @@ CURLcode Curl_http(struct connectdata *conn)
if
(
!
conn
->
bits
.
upload_chunky
&&
(
data
->
set
.
httpreq
!=
HTTPREQ_GET
))
{
/* not a chunky transfer but data is to be sent */
char
*
ptr
=
checkheaders
(
data
,
"Transfer-Encoding:"
);
ptr
=
checkheaders
(
data
,
"Transfer-Encoding:"
);
if
(
ptr
)
{
/* Some kind of TE is requested, check if 'chunked' is chosen */
if
(
Curl_compareheader
(
ptr
,
"Transfer-Encoding:"
,
"chunked"
))
...
...
@@ -1108,7 +1108,6 @@ CURLcode Curl_http(struct connectdata *conn)
/* If we have a given custom Host: header, we extract the host name
in order to possibly use it for cookie reasons later on. */
char
*
start
=
ptr
+
strlen
(
"Host:"
);
char
*
ptr
;
while
(
*
start
&&
isspace
((
int
)
*
start
))
start
++
;
ptr
=
start
;
/* start host-scanning here */
...
...
@@ -1395,7 +1394,7 @@ CURLcode Curl_http(struct connectdata *conn)
}
while
(
headers
)
{
char
*
ptr
=
strchr
(
headers
->
data
,
':'
);
ptr
=
strchr
(
headers
->
data
,
':'
);
if
(
ptr
)
{
/* we require a colon for this to be a true header */
...
...
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