Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
Sharkey
Manage
Activity
Members
Labels
Plan
Issues
342
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
25
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
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
TransFem.org
Sharkey
Commits
92eec217
Commit
92eec217
authored
11 months ago
by
dakkar
Browse files
Options
Downloads
Patches
Plain Diff
return 206 for every ranged response - fixes
#494
parent
bb7b4a8e
No related branches found
Branches containing commit
No related tags found
Tags containing commit
2 merge requests
!501
Release 2024.3.3
,
!490
handle ranged requests for proxied files - fixes #494
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
packages/backend/src/server/FileServerService.ts
+2
-0
2 additions, 0 deletions
packages/backend/src/server/FileServerService.ts
with
2 additions
and
0 deletions
packages/backend/src/server/FileServerService.ts
+
2
−
0
View file @
92eec217
...
...
@@ -192,6 +192,7 @@ export class FileServerService {
reply
.
header
(
'
Content-Range
'
,
`bytes
${
start
}
-
${
end
}
/
${
file
.
file
.
size
}
`
);
reply
.
header
(
'
Accept-Ranges
'
,
'
bytes
'
);
reply
.
header
(
'
Content-Length
'
,
chunksize
);
reply
.
code
(
206
);
}
else
{
image
=
{
data
:
fs
.
createReadStream
(
file
.
path
),
...
...
@@ -431,6 +432,7 @@ export class FileServerService {
reply
.
header
(
'
Content-Range
'
,
`bytes
${
start
}
-
${
end
}
/
${
file
.
file
.
size
}
`
);
reply
.
header
(
'
Accept-Ranges
'
,
'
bytes
'
);
reply
.
header
(
'
Content-Length
'
,
chunksize
);
reply
.
code
(
206
);
}
else
{
image
=
{
data
:
fs
.
createReadStream
(
file
.
path
),
...
...
This diff is collapsed.
Click to expand it.
dakkar
@dakkar
mentioned in commit
7cf0c18f
·
10 months ago
mentioned in commit
7cf0c18f
mentioned in commit 7cf0c18f83f82416c9b1bb5bca5b669e77240527
Toggle commit list
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