provisioning/provisioning-service-client/src/main/java/com/microsoft/azure/sdk/iot/provisioning/service/transport/https/HttpConnection.java [50:71]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    public HttpConnection(URL url, HttpMethod method) throws IOException
    {
        String protocol = url.getProtocol();
        if (!protocol.equalsIgnoreCase("HTTPS"))
        {
            String errMsg = String.format("Expected URL that uses iotHubServiceClientProtocol "
                            + "HTTPS but received one that uses "
                            + "iotHubServiceClientProtocol '%s'.\n",
                    protocol);
            throw new IllegalArgumentException(errMsg);
        }

        this.connection = (HttpsURLConnection) url.openConnection();

        if (method == HttpMethod.PATCH)
        {
            this.setUnsupportedMethod(method);
            method = HttpMethod.POST;
        }
        this.connection.setRequestMethod(method.name());
        this.body = new byte[0];
    }
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



provisioning/provisioning-device-client/src/main/java/com/microsoft/azure/sdk/iot/provisioning/device/transport/https/HttpConnection.java [50:71]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    public HttpConnection(URL url, HttpMethod method) throws IOException
    {
        String protocol = url.getProtocol();
        if (!protocol.equalsIgnoreCase("HTTPS"))
        {
            String errMsg = String.format("Expected URL that uses iotHubServiceClientProtocol "
                    + "HTTPS but received one that uses "
                    + "iotHubServiceClientProtocol '%s'.\n",
                protocol);
            throw new IllegalArgumentException(errMsg);
        }

        this.connection = (HttpsURLConnection) url.openConnection();

        if (method == HttpMethod.PATCH)
        {
            this.setUnsupportedMethod(method);
            method = HttpMethod.POST;
        }
        this.connection.setRequestMethod(method.name());
        this.body = new byte[0];
    }
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



