haskell/HTTP — pull request #52 by crosser (2014-03-17 17:42:25+00:00)
Title: Use user:pass@ from URI in Authorization: Basic

simpleHTTP allows the URI of the format "http://user:pass@host.dom/path",
but user:pass@ part is simply stripped out and ignored. This commit
introduces a 'normalizer' that takes user:pass@ data from the request's
URI and adds "Authorization: Basic ..." header to the request. This
normalizer is called before the normalizeHostURI normalizer, as the
latter strips the user:pass@ part from the URI.

_Please note that I am not an experienced Haskeller, it would be best if someone knowledgeable took a look at my work. Anyway, it does work for me._