Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
yohobuy-portal-fe
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
0
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
周奇琪
9 years ago
Commit
a9fd359cb88036eb7be4af0ac54181635a4f382e
1 parent
bede8464
修复乱码的问题
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
8 deletions
server/mid/grayroute.js
server/mid/grayroute.js
View file @
a9fd359
...
...
@@ -69,14 +69,7 @@ module.exports = function(proxyRoute) {
//跳转
ress
.
redirect
(
res
.
caseless
.
get
(
'location'
));
}
else
{
var
ContentType
=
res
.
caseless
.
get
(
'Content-Type'
);
var
isAttachment
=
res
.
caseless
.
get
(
'content-disposition'
);
if
(
isAttachment
&&
isAttachment
.
indexOf
(
'attachment'
)
>-
1
)
{
request
(
options
).
pipe
(
ress
);
}
else
{
ress
.
append
(
'Content-Type'
,
ContentType
);
ress
.
status
(
res
.
statusCode
).
send
(
body
);
}
request
(
options
).
pipe
(
ress
);
}
});
}
else
{
...
...
Please
register
or
login
to post a comment