popomore / koa-proxy

Proxy middleware for koa
223 stars 102 forks source link

Add option to enable/disable following redirects #45

Closed mehiel closed 7 years ago

mehiel commented 7 years ago

The option is followRedirect: boolean. The default value is true to preserve compatibility.

coveralls commented 7 years ago

Coverage Status

Coverage remained the same at 96.774% when pulling 5e255914c9da134d897b0210b688da766fb83004 on mehiel:feature/follow-redirect-option into de1d70000d08671b4fb60c4dbd0253b8da2a8521 on popomore:master.

mehiel commented 7 years ago

This provides similar functionality to https://github.com/popomore/koa-proxy/pull/19 but remains compatible to previous versions by choosing different defaults. Tests also provided.

popomore commented 7 years ago

LGTM

popomore commented 7 years ago