localstack / serverless-localstack

⚡ Serverless plugin for running against LocalStack
511 stars 82 forks source link

[Bug fix] Resolving issue with "://" index check always processing #213

Closed OnlyImmutable closed 1 year ago

OnlyImmutable commented 1 year ago

Resolving a bug where the checks to see if this.config.host contains :// always returns true resulting in exceptions for invalid uri.

This is happening because indexOf returns -1 not false resulting in the value always technically being true.