()
| 13448 | if (contentType && !getHeadersList(this[kHeaders]).contains("content-type", true)) { |
| 13449 | this[kHeaders].append("content-type", contentType); |
| 13450 | } |
| 13451 | } |
| 13452 | const inputOrInitBody = initBody != null ? initBody : inputBody; |
| 13453 | if (inputOrInitBody != null && inputOrInitBody.source == null) { |
| 13454 | if (initBody != null && init.duplex == null) { |
| 13455 | throw new TypeError("RequestInit: duplex option is required when sending a body."); |
| 13456 | } |