Fix bug WriteHeader called multiple times on request.
Fix bug WriteHeader called multiple times on request.

Deleplace/programming-idioms,Deleplace/programming-idioms,Deleplace/programming-idioms,Deleplace/programming-idioms