Pass headers as an option

Looks like you always intended this to be possible, since you declare headers early, you just don't override them anywhere.