Fixes #3 Redirects break write