(input)
| 687 | } |
| 688 | |
| 689 | function parseJsonObject(input) { |
| 690 | if (!input || typeof input !== 'string') { |
| 691 | return {} |
| 692 | } |
| 693 | try { |
| 694 | return JSON.parse(input) |
| 695 | } catch { |
| 696 | return { |
| 697 | raw: input, |
| 698 | } |
| 699 | } |
| 700 | } |
| 701 | |
| 702 | function buildUpstreamHeaders(config) { |
| 703 | const headers = { |
no test coverage detected