Error thrown: Can't modify immutable headers.