Properly detect truncated responses