Update HttpFilter.go

fixed a few minor logic bugs