OLD | NEW |
1 # Copyright 2014 The Chromium Authors. All rights reserved. | 1 # Copyright 2014 The Chromium Authors. All rights reserved. |
2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
4 | 4 |
5 # | 5 # |
6 # Most of this file was ported over from Blink's | 6 # Most of this file was ported over from Blink's |
7 # Tools/Scripts/webkitpy/layout_tests/layout_package/json_results_generator.py | 7 # Tools/Scripts/webkitpy/layout_tests/layout_package/json_results_generator.py |
8 # Tools/Scripts/webkitpy/common/net/file_uploader.py | 8 # Tools/Scripts/webkitpy/common/net/file_uploader.py |
9 # | 9 # |
10 | 10 |
(...skipping 677 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
688 lines.append('') | 688 lines.append('') |
689 if isinstance(value, unicode): | 689 if isinstance(value, unicode): |
690 value = value.encode('utf-8') | 690 value = value.encode('utf-8') |
691 lines.append(value) | 691 lines.append(value) |
692 | 692 |
693 lines.append('--' + BOUNDARY + '--') | 693 lines.append('--' + BOUNDARY + '--') |
694 lines.append('') | 694 lines.append('') |
695 body = CRLF.join(lines) | 695 body = CRLF.join(lines) |
696 content_type = 'multipart/form-data; boundary=%s' % BOUNDARY | 696 content_type = 'multipart/form-data; boundary=%s' % BOUNDARY |
697 return content_type, body | 697 return content_type, body |
OLD | NEW |