UNPKG
@reedchan/koa-http-proxy
Version:
latest (1.0.1)
1.0.1
1.0.0
0.5.1
0.5.0
0.4.1
0.3.0
http proxy middleware for koa
github.com/reedchan7/koa-http-proxy
reedchan7/koa-http-proxy
@reedchan/koa-http-proxy
/
app
/
steps
/
sendUserRes.js
11 lines
(8 loc)
•
255 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
"use strict"
;
function
sendUserRes
(
Container
) {
if
(!
Container
.
user
.
ctx
.
headerSent
&&
Container
.
user
.
ctx
.
status
!==
504
) {
Container
.
user
.
ctx
.
body
=
Container
.
proxy
.
resData
; }
return
Promise
.
resolve
(
Container
); }
module
.
exports
= sendUserRes;