add a workaround for 307 response….