Detect SSL by relying directly on the current browser protocol, rather than using Wordpress's is_ssl function which does not support downstream SSL termination.
Fix typo, thank you for the catch @oncletom.
Merge pull request #40 from freerobby/ssl_fix

Add SSL support for servers that use downstream SSL termination