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
1bcd3e60
Commit
1bcd3e60
authored
24 years ago
by
Daniel Stenberg
Browse files
Options
Downloads
Patches
Plain Diff
changed order of the range and follow-location checks so that a range-request
will work even when following a Location:
parent
e721f85c
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
+8
-8
8 additions, 8 deletions
lib/transfer.c
with
8 additions
and
8 deletions
lib/transfer.c
+
8
−
8
View file @
1bcd3e60
...
...
@@ -444,9 +444,14 @@ _Transfer(struct connectdata *c_conn)
write a chunk of the body */
if
(
conn
->
protocol
&
PROT_HTTP
)
{
/* HTTP-only checks */
if
(
data
->
resume_from
&&
!
content_range
&&
(
data
->
httpreq
==
HTTPREQ_GET
))
{
if
(
data
->
newurl
)
{
/* abort after the headers if "follow Location" is set */
infof
(
data
,
"Follow to new URL: %s
\n
"
,
data
->
newurl
);
return
CURLE_OK
;
}
else
if
(
data
->
resume_from
&&
!
content_range
&&
(
data
->
httpreq
==
HTTPREQ_GET
))
{
/* we wanted to resume a download, although the server
doesn't seem to support this and we did this with a GET
(if it wasn't a GET we did a POST or PUT resume) */
...
...
@@ -454,11 +459,6 @@ _Transfer(struct connectdata *c_conn)
"byte ranges. Cannot resume."
);
return
CURLE_HTTP_RANGE_ERROR
;
}
else
if
(
data
->
newurl
)
{
/* abort after the headers if "follow Location" is set */
infof
(
data
,
"Follow to new URL: %s
\n
"
,
data
->
newurl
);
return
CURLE_OK
;
}
else
if
(
data
->
timecondition
&&
!
data
->
range
)
{
/* A time condition has been set AND no ranges have been
requested. This seems to be what chapter 13.3.4 of
...
...
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