fixing http debug flag