Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
Krishna Vemulavada
/
vera_2.1_app
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
425d6e51
authored
Oct 17, 2016
by
Kunj Gupta
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
Increase read time for fetching the data.
parent
b097e5ef
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
app/src/main/java/com/vsoft/uoflservicenow/api/RestClient.java
app/src/main/java/com/vsoft/uoflservicenow/api/RestClient.java
View file @
425d6e51
...
...
@@ -30,7 +30,7 @@ public class RestClient {
OkHttpClient
.
Builder
httpClient
=
new
OkHttpClient
.
Builder
()
.
connectTimeout
(
10
,
TimeUnit
.
SECONDS
)
.
writeTimeout
(
10
,
TimeUnit
.
SECONDS
)
.
readTimeout
(
15
,
TimeUnit
.
SECONDS
);
.
readTimeout
(
30
,
TimeUnit
.
SECONDS
);
String
credentials
=
username
+
":"
+
password
;
final
String
basic
=
"Basic "
+
Base64
.
encodeToString
(
credentials
.
getBytes
(),
Base64
.
NO_WRAP
);
...
...
@@ -75,7 +75,7 @@ public class RestClient {
OkHttpClient
.
Builder
httpClient
=
new
OkHttpClient
.
Builder
()
.
connectTimeout
(
10
,
TimeUnit
.
SECONDS
)
.
writeTimeout
(
10
,
TimeUnit
.
SECONDS
)
.
readTimeout
(
15
,
TimeUnit
.
SECONDS
);
.
readTimeout
(
30
,
TimeUnit
.
SECONDS
);
// add your other interceptors
Interceptor
interceptor
=
new
Interceptor
()
{
@Override
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment