TIMOB-13031-allow setRequestHeader when state is opened and unsent

Allow setRequestHeader when state is READY_STATE_OPENED or READY_STATE_UNSENT.

https://jira.appcelerator.org/browse/TIMOB-13031