Only do auth checks for endpoints starting with v2
Only do auth checks for endpoints starting with v2

Changes behavior so ping doesn't happen if /v2/ is anywhere in a request path, but instead only at the beginning. This fixes attempts to ping on redirected URLs.

Signed-off-by: Derek McGowan <e1c79a582b6629e6b39e9679f4bb964d25db4aa8@mcgstyle.net> (github: dmcgowan)

alexisbellido/docker.github.io,denverdino/docker.github.io,shyr/distribution,bxy09/distribution,shin-/docker.github.io,jlhawn/distribution,jordimassaguerpla/distribution,aibaars/distribution,calavera/distribution,AoJ/distribution,mbentley/distribution,dv/distribution,thaJeztah/docker.github.io,beni55/distribution,deis/distribution,nevermosby/distribution,cezarsa/distribution,CodeJuan/distribution,docker/docker.github.io,RaviTezu/distribution,nevermosby/distribution,dalanlan/distribution,bigsurge/distribution,ChenLingPeng/distribution,apuigsech/distribution,denverdino/distribution-fuse,johnstep/docker.github.io,jzwlqx/denverdino.github.io,estesp/distribution,LuisBosquez/docker.github.io,pdevine/distribution,liubin/distribution,runcom/distribution,arvindkandhare/distribution,RyanDeng/distribution,menglingwei/denverdino.github.io,lindenlab/distribution,denverdino/denverdino.github.io,nateww/distribution,hpcloud/distribution,anweiss/docker.github.io,bdwill/docker.github.io,aduermael/docker.github.io,sergeyfd/distribution,jzwlqx/denverdino.github.io,alexisbellido/docker.github.io,Tiesheng/distribution,phiroict/docker,BrickXu/distribution,sadlil/distribution,denverdino/denverdino.github.io,spacexnice/distribution,menglingwei/denverdino.github.io,docker-zh/docker.github.io,aprajshekhar/distribution,londoncalling/docker.github.io,anweiss/docker.github.io,bsmr-docker/distribution,RichardScothern/distribution,docker/docker.github.io,convox/distribution,gdevillele/docker.github.io,docker/docker.github.io,bpradipt/distribution,lcarstensen/distribution,joeuo/docker.github.io,thaJeztah/distribution,londoncalling/docker.github.io,thaJeztah/docker.github.io,BrianBland/distribution,gdevillele/docker.github.io,noxiouz/distribution,danix800/docker.github.io,andrewnguyen/distribution,higebu/distribution,paulczar/distribution,JimGalasyn/docker.github.io,lorieri/distribution,phiroict/docker,thaJeztah/docker.github.io,dmcgowan/distribution,stevvooe/distribution,jmitchell/distribution,sanscontext/docker.github.io,genedock/distribution,yuwaMSFT2/distribution,rochacon/distribution,ibuildthecloud/distribution,linearregression/distribution,sanscontext/docker.github.io,danix800/docker.github.io,maquanyi/distribution,13W/distribution,johnstep/docker.github.io,n1tr0g/distribution,lindenlab/distribution,thaJeztah/distribution,rillig/docker.github.io,shin-/docker.github.io,estesp/distribution,anweiss/docker.github.io,andrewnguyen/distribution,londoncalling/docker.github.io,bdwill/docker.github.io,shubheksha/docker.github.io,bpradipt/distribution,GerritForge/docker-registry,spacexnice/distribution,hpcloud/distribution,jrjang/distribution,AoJ/distribution,rillig/docker.github.io,phiroict/docker,yeghishe/distribution,denverdino/docker.github.io,BSWANG/denverdino.github.io,stevvooe/distribution,armbuilds/distribution,londoncalling/docker.github.io,docker-zh/docker.github.io,avinson/distribution,BSWANG/denverdino.github.io,dave-tucker/distribution,arneluehrs/distribution,tian-xiaobo/distribution,iskradelta/distribution,ChenLingPeng/distribution,denverdino/distribution,alexisbellido/docker.github.io,dalanlan/distribution,shin-/docker.github.io,calavera/distribution,sallyom/distribution,jackpgriffin/distribution,zhaytee/distribution,LuisBosquez/docker.github.io,bobphill/distribution,LouisKottmann/distribution,qiniu/distribution,aibaars/distribution,lorieri/distribution,menglingwei/denverdino.github.io,huamai-io/distribution,phiroict/docker,xiekeyang/distribution,gdevillele/docker.github.io,sergeyfd/distribution,mattrgreen/distribution,shin-/docker.github.io,convox/distribution,gavioto/distribution,konnase/distribution,amitshukla/distribution,BrickXu/distribution,docker-zh/docker.github.io,wking/docker-distribution,mikebrow/distribution,uptownhr/distribution,zhangcoldwater/distribution,pdevine/distribution,hopkings2008/distribution,aaronlehmann/distribution,vdemeester/distribution,Gobliip/distribution,lebauce/distribution,bsmr-docker/distribution,zhaytee/distribution,humble00/distribution,adambrett-forks/distribution,thelinuxkid/distribution,docker-zh/docker.github.io,denverdino/denverdino.github.io,ibuildthecloud/distribution,jpoler/distribution,aprajshekhar/distribution,thelinuxkid/distribution,nwt/distribution,tschoots/distribution,runcom/distribution,nateww/distribution,denverdino/distribution-stevvooe,moxiegirl/distribution,joaofnfernandes/docker.github.io,djenriquez/distribution,jwhonce/distribution,ContainerSolutions/distribution,xiekeyang/distribution,denverdino/docker.github.io,rillig/docker.github.io,genedock/distribution,sallyom/distribution,shyr/distribution,thaJeztah/docker.github.io,dmcgowan/distribution,mattmoor/distribution,docker/docker.github.io,harrisonfeng/distribution,rbarlow/distribution,rodacom/docker-hub,konstruktoid/distribution,jramseye/distribution,atyenoria/distribution,curtiszimmerman/distribution,shubheksha/docker.github.io,sebrandon1/distribution,arvindkandhare/distribution,troy0820/docker.github.io,docker/distribution,manoj535/distribution,BSWANG/denverdino.github.io,cyli/distribution,rodacom/docker-hub,moxiegirl/distribution,sanscontext/docker.github.io,anweiss/docker.github.io,jrjang/distribution,noxiouz/distribution,vdemeester/distribution,tt/distribution,championv/distribution,tian-xiaobo/distribution,rillig/docker.github.io,shubheksha/docker.github.io,BSWANG/denverdino.github.io,JimGalasyn/docker.github.io,shin-/docker.github.io,higebu/distribution,n1tr0g/distribution,phiroict/docker,bdwill/docker.github.io,maquanyi/distribution,liubin/distribution,johnstep/docker.github.io,duglin/distribution,RyanDeng/distribution,sthapaun/distribution,denverdino/distribution,jonboulle/distribution,imranraja85/distribution,mikebrow/distribution,harrisonfeng/distribution,aduermael/docker.github.io,BradleyA/distribution,jpoler/distribution,sanscontext/docker.github.io,yuwaMSFT2/distribution,yeghishe/distribution,troy0820/docker.github.io,shubheksha/docker.github.io,hopkings2008/distribution,nwt/distribution,baloo/distribution,huamai-io/distribution,dave-tucker/distribution,LouisKottmann/distribution,kmala/distribution,cyli/distribution,rochacon/distribution,londoncalling/docker.github.io,menglingwei/denverdino.github.io,RaviTezu/distribution,denverdino/docker.github.io,BSWANG/denverdino.github.io,aybabtme/distribution,jackpgriffin/distribution,jzwlqx/denverdino.github.io,johnstep/docker.github.io,denverdino/distribution-stevvooe,lcarstensen/distribution,alexisbellido/docker.github.io,bigsurge/distribution,schu/distribution,thaJeztah/docker.github.io,Seb-Solon/distribution,jzwlqx/denverdino.github.io,jhicks-camgian/distribution,deis/distribution,curtiszimmerman/distribution,JimGalasyn/docker.github.io,docker-zh/docker.github.io,aduermael/docker.github.io,hanleys/distribution,whyrusleeping/distribution,gdevillele/docker.github.io,whyrusleeping/distribution,tt/distribution,iskradelta/distribution,RichardScothern/distribution,denverdino/distribution-fuse,sthapaun/distribution,tschoots/distribution,rbarlow/distribution,denverdino/denverdino.github.io,joeuo/docker.github.io,jordimassaguerpla/distribution,gdevillele/docker.github.io,LuisBosquez/docker.github.io,harche/distribution,mattmoor/distribution,tdooner/distribution,Seb-Solon/distribution,jzwlqx/distribution,aaronlehmann/distribution,baloo/distribution,jzwlqx/denverdino.github.io,JimGalasyn/docker.github.io,joaofnfernandes/docker.github.io,jzwlqx/distribution,jhicks-camgian/distribution,LuisBosquez/docker.github.io,denverdino/docker.github.io,endophage/distribution,uptownhr/distribution,linearregression/distribution,Tiesheng/distribution,dobril-stanga/distribution,danix800/docker.github.io,tdooner/distribution,shubheksha/docker.github.io,GerritForge/docker-registry,troy0820/docker.github.io,zerosign/distribution,arneluehrs/distribution,armbuilds/distribution,ContainerSolutions/distribution,troy0820/docker.github.io,sadlil/distribution,jwhonce/distribution,imranraja85/distribution,humble00/distribution,jramseye/distribution,codefresh-io/cf-distribution,championv/distribution,djenriquez/distribution,atyenoria/distribution,sanscontext/docker.github.io,aduermael/docker.github.io,wking/docker-distribution,rhoml/distribution,harche/distribution,joaofnfernandes/docker.github.io,bdwill/docker.github.io,jonboulle/distribution,aybabtme/distribution,rhoml/distribution,manoj535/distribution,qiniu/distribution,jlhawn/distribution,beni55/distribution,schu/distribution,cezarsa/distribution,wangmingshuai/distribution,avinson/distribution,miminar/distribution,kmala/distribution,joaofnfernandes/docker.github.io,paulczar/distribution,BrianBland/distribution,amitshukla/distribution,dobril-stanga/distribution,zerosign/distribution,docker/docker.github.io,gavioto/distribution,miminar/distribution,anweiss/docker.github.io,joaofnfernandes/docker.github.io,lebauce/distribution,sebrandon1/distribution,wangmingshuai/distribution,joeuo/docker.github.io,joeuo/docker.github.io,mattrgreen/distribution,alexisbellido/docker.github.io,johnstep/docker.github.io,konstruktoid/distribution,BradleyA/distribution,duglin/distribution,bobphill/distribution,13W/distribution,joeuo/docker.github.io,jmitchell/distribution,Gobliip/distribution,LuisBosquez/docker.github.io,CodeJuan/distribution,apuigsech/distribution,bxy09/distribution,JimGalasyn/docker.github.io,konnase/distribution,denverdino/denverdino.github.io,zhangcoldwater/distribution,dv/distribution,bdwill/docker.github.io,docker/distribution,menglingwei/denverdino.github.io,danix800/docker.github.io,codefresh-io/cf-distribution,endophage/distribution,mbentley/distribution,adambrett-forks/distribution,hanleys/distribution