newHeaders seems like dead code.