@@ -24,7 +24,7 @@ describe('lib/http-proxy/passes/web-outgoing.js', function () {
24
24
beforeEach ( function ( ) {
25
25
this . options . hostRewrite = "ext-manual.com" ;
26
26
} ) ;
27
- [ 301 , 302 , 307 , 308 ] . forEach ( function ( code ) {
27
+ [ 201 , 301 , 302 , 307 , 308 ] . forEach ( function ( code ) {
28
28
it ( 'on ' + code , function ( ) {
29
29
this . proxyRes . statusCode = code ;
30
30
httpProxy . setRedirectHostRewrite ( this . req , { } , this . proxyRes , this . options ) ;
@@ -69,7 +69,7 @@ describe('lib/http-proxy/passes/web-outgoing.js', function () {
69
69
beforeEach ( function ( ) {
70
70
this . options . autoRewrite = true ;
71
71
} ) ;
72
- [ 301 , 302 , 307 , 308 ] . forEach ( function ( code ) {
72
+ [ 201 , 301 , 302 , 307 , 308 ] . forEach ( function ( code ) {
73
73
it ( 'on ' + code , function ( ) {
74
74
this . proxyRes . statusCode = code ;
75
75
httpProxy . setRedirectHostRewrite ( this . req , { } , this . proxyRes , this . options ) ;
@@ -108,7 +108,7 @@ describe('lib/http-proxy/passes/web-outgoing.js', function () {
108
108
beforeEach ( function ( ) {
109
109
this . options . protocolRewrite = 'https' ;
110
110
} ) ;
111
- [ 301 , 302 , 307 , 308 ] . forEach ( function ( code ) {
111
+ [ 201 , 301 , 302 , 307 , 308 ] . forEach ( function ( code ) {
112
112
it ( 'on ' + code , function ( ) {
113
113
this . proxyRes . statusCode = code ;
114
114
httpProxy . setRedirectHostRewrite ( this . req , { } , this . proxyRes , this . options ) ;
@@ -241,4 +241,3 @@ describe('lib/http-proxy/passes/web-outgoing.js', function () {
241
241
} ) ;
242
242
243
243
} ) ;
244
-
0 commit comments