io.EOF was not properly accounted for when dealing with patches that are missing trailing newline characters.
These cover all of the cases (I think) where application should succeed.