Metrics now counts 300s as success

refs #88
I was trying to preserve existing error logic whereby if redirects should
be followed but too many received then error. If you do not care about
preservation then I agree with the simpler approach.
On Thu, Nov 13, 2014 at 18:17 Tomás Senart <notifications@github.com> wrote:

> In lib/attack.go:
>
> > @@ -68,10 +72,13 @@ func Workers(n uint64) func(*Attacker) {
> >  func Redirects(n int) func(*Attacker) {
> >  	return func(a *Attacker) {
> >  		a.client.CheckRedirect = func(_ *http.Request, via []*http.Request) error {
> > -			if len(via) > n {
> > +			if n == 0 {
>
> No need to make this distinction here. You can always return the error.
>
> if len(via) > n {
>     return ErrTooManyRedirects
> }return nil
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/tsenart/vegeta/pull/93/files#r20331547>.
>