@@ -24,7 +24,7 @@ describe('lib/http-proxy/passes/web-outgoing.js', function () {
2424 beforeEach ( function ( ) {
2525 this . options . hostRewrite = "ext-manual.com" ;
2626 } ) ;
27- [ 301 , 302 , 307 , 308 ] . forEach ( function ( code ) {
27+ [ 201 , 301 , 302 , 307 , 308 ] . forEach ( function ( code ) {
2828 it ( 'on ' + code , function ( ) {
2929 this . proxyRes . statusCode = code ;
3030 httpProxy . setRedirectHostRewrite ( this . req , { } , this . proxyRes , this . options ) ;
@@ -69,7 +69,7 @@ describe('lib/http-proxy/passes/web-outgoing.js', function () {
6969 beforeEach ( function ( ) {
7070 this . options . autoRewrite = true ;
7171 } ) ;
72- [ 301 , 302 , 307 , 308 ] . forEach ( function ( code ) {
72+ [ 201 , 301 , 302 , 307 , 308 ] . forEach ( function ( code ) {
7373 it ( 'on ' + code , function ( ) {
7474 this . proxyRes . statusCode = code ;
7575 httpProxy . setRedirectHostRewrite ( this . req , { } , this . proxyRes , this . options ) ;
@@ -108,7 +108,7 @@ describe('lib/http-proxy/passes/web-outgoing.js', function () {
108108 beforeEach ( function ( ) {
109109 this . options . protocolRewrite = 'https' ;
110110 } ) ;
111- [ 301 , 302 , 307 , 308 ] . forEach ( function ( code ) {
111+ [ 201 , 301 , 302 , 307 , 308 ] . forEach ( function ( code ) {
112112 it ( 'on ' + code , function ( ) {
113113 this . proxyRes . statusCode = code ;
114114 httpProxy . setRedirectHostRewrite ( this . req , { } , this . proxyRes , this . options ) ;
@@ -241,4 +241,3 @@ describe('lib/http-proxy/passes/web-outgoing.js', function () {
241241 } ) ;
242242
243243} ) ;
244-
0 commit comments