Copy http headers correctly

Closes #165

@devcritter  could you review this for me please.