global: fix for testing 401 after redirection
global: fix for testing 401 after redirection

* Addresses issue with testing HTTP 401 status code after redirections
  to secure page.  (closes #1883)

Signed-off-by: Jiri Kuncar <2bdffcb416fed3002465740d19a053a39918cbe5@cern.ch>

inveniosoftware/invenio-communities,inveniosoftware/invenio-communities,inveniosoftware/invenio-communities,inveniosoftware/invenio-communities