remove unused code
close the OutputStream as soon as we're done using it (safer than flush)
update to the latest OkHttp master