reduce traffic and accept 301 redirects immediately

Signed-off-by: Lehner Florian <dev@der-flo.net>
proper setting of the log

Signed-off-by: Lehner Florian <dev@der-flo.net>
don't compare signed with unsigned stuff

Signed-off-by: Lehner Florian <dev@der-flo.net>
remove unused parameter

Signed-off-by: Lehner Florian <dev@der-flo.net>
add some stuff for debugging

Signed-off-by: Lehner Florian <dev@der-flo.net>
use unused parameter for proper debugging messages

Signed-off-by: Lehner Florian <dev@der-flo.net>