if the $url scheme differs from $upload_url scheme, make them match
added comments after making branch
Defined two vars which I forgot to include earlier
Merge pull request #28 from argsv/url_scheme_fix

Url scheme fix