Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
siibra-explorer
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Xiao Gui
siibra-explorer
Commits
8d3a74a7
Unverified
Commit
8d3a74a7
authored
5 years ago
by
xgui3783
Committed by
GitHub
5 years ago
Browse files
Options
Downloads
Plain Diff
Merge pull request #343 from HumanBrainProject/bugfix/fixBrokenPostStampLinks
bugfix: broken post stamp links
parents
ac5525da
afaf4840
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
deploy/datasets/index.js
+6
-0
6 additions, 0 deletions
deploy/datasets/index.js
with
6 additions
and
0 deletions
deploy/datasets/index.js
+
6
−
0
View file @
8d3a74a7
...
...
@@ -129,6 +129,12 @@ fs.readdir(RECEPTOR_PATH, (err, files) => {
datasetsRouter
.
get
(
'
/previewFile
'
,
cacheMaxAge24Hr
,
(
req
,
res
)
=>
{
const
{
file
}
=
req
.
query
const
filePath
=
previewFileMap
.
get
(
file
)
// even though req.url is modified, req.query is not
// for now, just serve non encoded image
res
.
removeHeader
(
'
Content-Encoding
'
)
if
(
filePath
)
{
fs
.
createReadStream
(
filePath
).
pipe
(
res
)
}
else
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
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