fix multiple redirections
Merge pull request #16 from obfusk/fix-multiple-redirections

fix multiple redirections