Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
Dspace7 Angular
Manage
Activity
Members
Labels
Plan
Issues
42
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package Registry
Operate
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor 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
vtechworks
Dspace7 Angular
Commits
68ecc7ac
Commit
68ecc7ac
authored
4 years ago
by
Art Lowel
Browse files
Options
Downloads
Patches
Plain Diff
rename token param to authentication-token
parent
9a4f962a
Branches
Branches containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/app/core/shared/file.service.ts
+1
-1
1 addition, 1 deletion
src/app/core/shared/file.service.ts
with
1 addition
and
1 deletion
src/app/core/shared/file.service.ts
+
1
−
1
View file @
68ecc7ac
...
...
@@ -24,7 +24,7 @@ export class FileService {
*/
downloadFile
(
url
:
string
)
{
this
.
authService
.
getShortlivedToken
().
pipe
(
take
(
1
)).
subscribe
((
token
)
=>
{
this
.
_window
.
nativeWindow
.
location
.
href
=
hasValue
(
token
)
?
new
URLCombiner
(
url
,
`?token=
${
token
}
`
).
toString
()
:
url
;
this
.
_window
.
nativeWindow
.
location
.
href
=
hasValue
(
token
)
?
new
URLCombiner
(
url
,
`?
authentication-
token=
${
token
}
`
).
toString
()
:
url
;
});
}
...
...
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