File tree 2 files changed +6
-6
lines changed
2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " @fastify/http-proxy" ,
3
- "version" : " 10.0.0-pre.fv5.2 " ,
3
+ "version" : " 10.0.0" ,
4
4
"description" : " proxy http requests, for Fastify" ,
5
5
"main" : " index.js" ,
6
6
"type" : " commonjs" ,
37
37
"express" : " ^4.19.2" ,
38
38
"express-http-proxy" : " ^2.0.0" ,
39
39
"fast-proxy" : " ^2.1.0" ,
40
- "fastify" : " ^5.0.0-alpha.3 " ,
40
+ "fastify" : " ^5.0.0-alpha.4 " ,
41
41
"got" : " ^11.8.6" ,
42
42
"http-errors" : " ^2.0.0" ,
43
43
"http-proxy" : " ^1.18.1" ,
52
52
"why-is-node-running" : " ^3.0.0"
53
53
},
54
54
"dependencies" : {
55
- "@fastify/reply-from" : " ^10 .0.0-pre.fv5.1 " ,
55
+ "@fastify/reply-from" : " ^11 .0.0" ,
56
56
"fast-querystring" : " ^1.1.2" ,
57
- "fastify-plugin" : " ^5.0.0-pre.fv5.1 " ,
57
+ "fastify-plugin" : " ^5.0.0" ,
58
58
"ws" : " ^8.16.0"
59
59
},
60
60
"tsd" : {
Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ async function run () {
19
19
} )
20
20
21
21
origin . get ( '/redirect' , async ( request , reply ) => {
22
- return reply . redirect ( 302 , 'https://fastify.dev' )
22
+ return reply . redirect ( 'https://fastify.dev' , 302 )
23
23
} )
24
24
25
25
origin . post ( '/this-has-data' , async ( request , reply ) => {
@@ -666,7 +666,7 @@ async function run () {
666
666
upstream : `http://localhost:${ origin . server . address ( ) . port } ` ,
667
667
prefix : '/api' ,
668
668
replyOptions : {
669
- onResponse ( request , reply , stream ) {
669
+ onResponse ( request , reply , { stream } ) {
670
670
return reply . send (
671
671
stream . pipe (
672
672
new Transform ( {
You can’t perform that action at this time.
0 commit comments