| Index: google_apis/drive/drive_api_requests.cc
|
| diff --git a/google_apis/drive/drive_api_requests.cc b/google_apis/drive/drive_api_requests.cc
|
| index d1b9b1f5988b35735774ae6deb76750f3daa3c9f..307e5411477dd7e4c935af33f141b95119bf98c8 100644
|
| --- a/google_apis/drive/drive_api_requests.cc
|
| +++ b/google_apis/drive/drive_api_requests.cc
|
| @@ -219,10 +219,9 @@ bool ParseMultipartResponse(const std::string& content_type,
|
| if (content_type_piece.empty())
|
| return false;
|
| if (content_type_piece[0] == '"') {
|
| - if (content_type_piece.size() <= 2 ||
|
| - content_type_piece[content_type_piece.size() - 1] != '"') {
|
| + if (content_type_piece.size() <= 2 || content_type_piece.back() != '"')
|
| return false;
|
| - }
|
| +
|
| content_type_piece =
|
| content_type_piece.substr(1, content_type_piece.size() - 2);
|
| }
|
|
|