Fixed potential crash case in MIMEType logic exposed by chaining.
Fixed potential crash case in MIMEType logic exposed by chaining.

The trimmed string needs to be pulled into a separate variable. Otherwise, the chained substring call is grabbing indices from the previous string, not the trimmed version. This can lead to index out of bounds problems.

ernestopino/Alamofire,SampleLiao/Alamofire,irealme/Alamofire,petereddy/Alamofire,mbhuta/Alamofire,Alamofire/Alamofire,dgdosen/Alamofire,easyui/Alamofire,tonyli508/AlamofireDomain,LionHeart123/Alamofire,cesar-oyarzun-m/Alamofire,libiao88/Alamofire,revdotcom/Alamofire,agustindc-rga/Alamofire,rjsamson/Alamofire,meteochu/Alamofire,robskillington/Alamofire,foxkillerli/Alamofire,yjkim/Alamofire,trauzti/Alamofire,yimajo/Alamofire,lumenlunae/Alamofire,lclamotte/Alamofire,PhilJay/Alamofire,DouKing/Alamofire,neugartf/Alamofire,followwind007/Alamofire,MaWenxing/Alamofire,richardPFisk/Alamofire,ThornTechPublic/Alamofire,Baza207/Alamofire,twobitlabs/Alamofire,tokorom/Alamofire,kiancheong/Alamofire,kiancheong/Alamofire,neugartf/Alamofire,BNakum/Alamofire,nickygerritsen/Alamofire,i-miss-you/Alamofire,mbhuta/Alamofire,guipanizzon/Alamofire,MaWenxing/Alamofire,libiao88/Alamofire,liuchungui/Alamofire,gauravds/Alamofire,Noobish1/Alamofire,alex-learn/Alamofire,Screon/Alamofire,Staance/Alamofire,rafaelvg/Alamofire,antigp/Alamofire,yujiaao/Alamofire,mcgrady20150318/Alamofire,AnthonyMDev/Alamofire,alvincrisuy/Alamofire,petereddy/Alamofire,robskillington/Alamofire,Lomotif/Alamofire,DouKing/Alamofire,dgdosen/Alamofire,twobitlabs/Alamofire,sarunw/Alamofire,sai43/Alamofire,kevin-zqw/Alamofire,Paul-van-Klaveren/Alamofire,christophercotton/Alamofire,yimajo/Alamofire,st3fan/Alamofire,Lomotif/Alamofire,followwind007/Alamofire,richardPFisk/Alamofire,antigp/Alamofire,jmkr/Alamofire,cmpt275group9/Alamofire,davepatterson/Alamofire,hazytint/Alamofire,Vkt0r/Alamofire,PhuocLinh/Alamofire,imjerrybao/Alamofire,meteochu/Alamofire,chokett/Alamofire,bnadim/Alamofire,androidrivne/Alamofire,leelili/Alamofire,dawangjiaowolaixunshan/Alamofire,bnadim/Alamofire,ThornTechPublic/Alamofire,Farteen/Alamofire,Vkt0r/Alamofire,rjsamson/Alamofire,Karumi/Alamofire-Result,chokett/Alamofire,zuthan/Alamofire,sai43/Alamofire,bscarano/Alamofire,muukii/Alamofire,hazytint/Alamofire,iosheadhunter/Alamofire,thebugcode/Alamofire,suxinde2009/Alamofire,sarunw/Alamofire,Holmusk/Alamofire,DreamHill/Alamofire,Holmusk/Alamofire,st3fan/Alamofire,zuthan/Alamofire,RyanCodes/Alamofire,Screon/Alamofire,muukii/Alamofire,Noobish1/Alamofire,yaoxiaoyong/Alamofire,Koalappp/Alamofire,cesar-oyarzun-m/Alamofire,RyanCodes/Alamofire,foxkillerli/Alamofire,nickygerritsen/Alamofire,Staance/Alamofire,ernestopino/Alamofire,yjkim/Alamofire,red3/Alamofire,PhilJay/Alamofire,AnthonyMDev/Alamofire,guipanizzon/Alamofire,DreamHill/Alamofire,alex-learn/Alamofire,liuchungui/Alamofire,BNakum/Alamofire,Karumi/Alamofire-Result,lumenlunae/Alamofire,gauravds/Alamofire,dandalf/Alamofire,dawangjiaowolaixunshan/Alamofire,iosheadhunter/Alamofire,Paul-van-Klaveren/Alamofire,easyui/Alamofire,john-langley/Alamofire,rain1988/Alamofire,kevin-zqw/Alamofire,leelili/Alamofire,cmpt275group9/Alamofire,suxinde2009/Alamofire,ikesyo/Alamofire,Holmusk/Alamofire,youweit/Alamofire,jmkr/Alamofire,yujiaao/Alamofire,red3/Alamofire,trauzti/Alamofire,Farteen/Alamofire,thebugcode/Alamofire,Koalappp/Alamofire,lclamotte/Alamofire,youweit/Alamofire,christophercotton/Alamofire,Swiftosis/Alamofire,LionHeart123/Alamofire,mcgrady20150318/Alamofire,alvincrisuy/Alamofire,Swiftosis/Alamofire,brandenr/Alamofire,brandenr/Alamofire,rain1988/Alamofire,PhuocLinh/Alamofire,bscarano/Alamofire,ikesyo/Alamofire,dandalf/Alamofire,Alamofire/Alamofire,tokorom/Alamofire,revdotcom/Alamofire,SampleLiao/Alamofire,imjerrybao/Alamofire,i-miss-you/Alamofire,jschmid/Alamofire,rafaelvg/Alamofire,agustindc-rga/Alamofire,jschmid/Alamofire,tonyli508/AlamofireDomain,john-langley/Alamofire,davepatterson/Alamofire,androidrivne/Alamofire,irealme/Alamofire,yaoxiaoyong/Alamofire,Baza207/Alamofire