tomaslin / grails-cdn-resources

Plugin that plays together with grails resources plugin but loads resources from a CDN like Amazon CloudFront
Other
8 stars 5 forks source link

cdnResources.url with ending slash is process wrong #2

Closed simoncomley closed 13 years ago

simoncomley commented 13 years ago

I'm not sure if you want feedback but line 32 has a bug in it:

           url = url[-1]

If you have a value like http://mycdn.amazon.com/ the url ends up being / instead of what I expect you wanted it to be which is http://mycdn.amazon.com

Just thought you should know