Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
set_password_api
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Alina Habibulina
set_password_api
Commits
9a13add2
Commit
9a13add2
authored
Apr 18, 2018
by
Valentin Skripnikov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix content type check
parent
41b0d9b3
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
src/main/java/kz/arta/ext/sap/service/UnsecuredProxyService.java
...n/java/kz/arta/ext/sap/service/UnsecuredProxyService.java
+1
-1
No files found.
src/main/java/kz/arta/ext/sap/service/UnsecuredProxyService.java
View file @
9a13add2
...
@@ -77,7 +77,7 @@ public class UnsecuredProxyService {
...
@@ -77,7 +77,7 @@ public class UnsecuredProxyService {
LOGGER
.
info
(
"Response Code: "
+
responseCode
);
LOGGER
.
info
(
"Response Code: "
+
responseCode
);
LOGGER
.
info
(
"Content-Type: "
+
entity
.
getContentType
().
getValue
());
LOGGER
.
info
(
"Content-Type: "
+
entity
.
getContentType
().
getValue
());
if
(
entity
.
getContentType
().
getValue
().
toLowerCase
().
startsWith
(
"image/
png
"
))
{
if
(
entity
.
getContentType
().
getValue
().
toLowerCase
().
startsWith
(
"image/"
))
{
Response
.
ResponseBuilder
builder
=
Response
.
ok
();
Response
.
ResponseBuilder
builder
=
Response
.
ok
();
builder
.
entity
(
entity
.
getContent
());
builder
.
entity
(
entity
.
getContent
());
...
...
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