| Conditions | 3 |
| Total Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | require 'base64' |
||
| 28 | def build_json_part(json) |
||
| 29 | json_part = MIME::Text.new(json) |
||
| 30 | json_part.headers.delete('Content-Id') if disable_content_id? |
||
| 31 | json_part.headers.set('Content-Type', 'application/json') |
||
| 32 | json_part.headers.set('Content-Transfer-Encoding', 'base64') if encode_base64? |
||
| 33 | return json_part |
||
| 34 | end |
||
| 35 | |||
| 51 |