Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
V
vitamui-pr-pastis
Manage
Activity
Members
Labels
Code
Merge requests
1
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Operate
Environments
Terraform modules
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
dad
vitamui-pr-pastis
Commits
d5887a69
Commit
d5887a69
authored
4 years ago
by
Amine FILALI
Browse files
Options
Downloads
Patches
Plain Diff
[FIX RABB-37] Accept Timeout parameter as Http header
parent
7b44fd6a
No related branches found
Branches containing commit
No related tags found
1 merge request
!1
Feature/design/1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
ui/ui-frontend-common/src/app/modules/vitamui-http-interceptor.ts
+4
-0
4 additions, 0 deletions
...ontend-common/src/app/modules/vitamui-http-interceptor.ts
with
4 additions
and
0 deletions
ui/ui-frontend-common/src/app/modules/vitamui-http-interceptor.ts
+
4
−
0
View file @
d5887a69
...
@@ -103,6 +103,10 @@ export class VitamUIHttpInterceptor implements HttpInterceptor {
...
@@ -103,6 +103,10 @@ export class VitamUIHttpInterceptor implements HttpInterceptor {
if
(
!
applicationId
)
{
if
(
!
applicationId
)
{
applicationId
=
this
.
startupService
.
CURRENT_APP_ID
;
applicationId
=
this
.
startupService
.
CURRENT_APP_ID
;
}
}
const
headerTimeout
=
request
.
headers
.
get
(
'
X-Api-Timeout
'
);
if
(
headerTimeout
&&
!
isNaN
(
Number
(
headerTimeout
)))
{
this
.
apiTimeout
=
Number
(
headerTimeout
);
}
const
reqWithCredentials
=
request
.
clone
({
const
reqWithCredentials
=
request
.
clone
({
withCredentials
:
true
,
withCredentials
:
true
,
...
...
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