fix: incorrect header check fixes: #4372 (#4373)
fix: incorrect header check fixes: #4372 (#4373)

Co-authored-by: Tony Huang <b452e31870832abdfb4d13c8b319cdad3e749fac@gmail.com>
firebase/firebase-tools,firebase/firebase-tools,firebase/firebase-tools,firebase/firebase-tools,firebase/firebase-tools