small http lib redirect modification