Fix issues with the replicator when using HTTP Basic authentication, receiving an HTTP redirect response, and loosing the authentication credentials because they're not found in the Location header's URL.
Fix issues with the replicator when using HTTP Basic authentication, receiving an HTTP redirect
response, and loosing the authentication credentials because they're not found in the Location header's URL.

This happens for example when the replicator does a request to the URI /somedb/_design%2Fmyddoc



git-svn-id: c1f8a8ec0b3bb2e99ab3413722f81f687760e79c@979887 13f79535-47bb-0310-9956-ffa450edef68

fkaempfer/couchdb,fkaempfer/couchdb,KlausTrainer/couchdb-couch,smithsz/couchdb-couch,fkaempfer/couchdb,apache/couchdb-couch,alanning/couchdb-couch,cloudant/couchdb-couch,KlausTrainer/couchdb-couch,ngpestelos/couchdb-couch,ngpestelos/couchdb-couch,KlausTrainer/couchdb-couch,alanning/couchdb-couch,cloudant/couchdb-couch,apache/couchdb-couch,fkaempfer/couchdb,cloudant/couchdb-couch,ngpestelos/couchdb-couch,apache/couchdb-couch,smithsz/couchdb-couch,smithsz/couchdb-couch,fkaempfer/couchdb,fkaempfer/couchdb,alanning/couchdb-couch