fixed generating httpauth