Fixed: "Cookie:" headers added to replication by app get lost

Fixes #532