Fixed typos on addHeader and setHeaders functions.

I realize these are deprecated functions, but they generate errors due to typos.