provisioning/provisioning-service-client/src/main/java/com/microsoft/azure/sdk/iot/provisioning/service/transport/https/HttpConnection.java [167:184]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    public void writeOutput(byte[] body)
    {
        HttpMethod method = HttpMethod.valueOf(
                this.connection.getRequestMethod());
        if (method != HttpMethod.POST && method != HttpMethod.PUT)
        {
            if (body.length > 0)
            {
                throw new IllegalArgumentException(
                        "Cannot write a body to a request that "
                        + "is not a POST or a PUT request.");
            }
        }
        else
        {
            this.body = Arrays.copyOf(body, body.length);
        }
    }
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



provisioning/provisioning-device-client/src/main/java/com/microsoft/azure/sdk/iot/provisioning/device/transport/https/HttpConnection.java [167:184]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    public void writeOutput(byte[] body)
    {
        HttpMethod method = HttpMethod.valueOf(
            this.connection.getRequestMethod());
        if (method != HttpMethod.POST && method != HttpMethod.PUT)
        {
            if (body.length > 0)
            {
                throw new IllegalArgumentException(
                    "Cannot write a body to a request that "
                        + "is not a POST or a PUT request.");
            }
        }
        else
        {
            this.body = Arrays.copyOf(body, body.length);
        }
    }
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



