KimNorgaard/KimNorgaard-httpfile — pull request #10 by fkrull (2014-02-14 16:30:32+00:00)
Title: Only set authorization settings when a username or password are supplied...

Changed the request code to only set HTTP Basic Auth options when a username or a password are actually specified.

I had some trouble downloading a file from some Google server (http://commondatastorage.googleapis.com/git-repo-downloads/repo in particular) because the server would react to the (invalid?) authorization header with 403 responses. This change only adds an authorization header if username or password are specified, solving that problem for me.