Skip to main content
Homepage
Explore
Search or go to…
/
Sign in
Explore
Primary navigation
Project
B
BlobApi
Manage
Activity
Members
Labels
Plan
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Collapse sidebar
Snippets
Groups
Projects
Show more breadcrumbs
Coscine
backend
apis
BlobApi
Commits
b9ce51ce
This project is archived. Its data is
read-only
.
Commit
b9ce51ce
authored
Oct 20, 2022
by
Petar Hristov
Browse files
Options
Downloads
Plain Diff
Merge branch 'Hotfix/2254-fixContentLenghtCalculation' into 'master'
Fix: Update dependencies See merge request
!74
parents
ee58700d
56f3121b
Branches
Branches containing commit
Tags
v0.8.0
Tags containing commit
2 merge requests
!75
Update dev
,
!74
Fix: Update dependencies
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/Blob/Controllers/BlobController.cs
+2
-0
2 additions, 0 deletions
src/Blob/Controllers/BlobController.cs
with
2 additions
and
0 deletions
src/Blob/Controllers/BlobController.cs
+
2
−
0
View file @
b9ce51ce
...
...
@@ -134,7 +134,9 @@ namespace Coscine.Api.Blob.Controllers
}
var
infos
=
await
resourceTypeDefinition
.
GetEntry
(
resource
.
Id
.
ToString
(),
path
);
var
response
=
await
resourceTypeDefinition
.
LoadEntry
(
resource
.
Id
.
ToString
(),
path
);
new
FileExtensionContentTypeProvider
().
TryGetContentType
(
path
,
out
string
contentType
);
LogAnalytics
(
"Download File"
,
resourceId
,
path
,
user
);
return
File
(
response
,
contentType
??
"application/octet-stream"
);
}
...
...
...
...
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
sign in
to comment