(err)
| 6670 | contentLength = bodyLength != null ? bodyLength : contentLength; |
| 6671 | if (contentLength === null) { |
| 6672 | contentLength = request.contentLength; |
| 6673 | } |
| 6674 | if (contentLength === 0 && !expectsPayload) { |
| 6675 | contentLength = null; |
| 6676 | } |
| 6677 | if (shouldSendContentLength(method) && contentLength > 0 && request.contentLength !== null && request.contentLength !== contentLength) { |
| 6678 | if (client[kStrictContentLength]) { |
| 6679 | util.errorRequest(client, request, new RequestContentLengthMismatchError()); |
| 6680 | return false; |
| 6681 | } |
| 6682 | process.emitWarning(new RequestContentLengthMismatchError()); |
no test coverage detected