title: Rest Assured basic auth issue
body: <p>I have an endpoint which works perfectly fine when I use Postman with Basic Auth. However, when I tried it in Rest Assured it returns 401. I have tried both different auth methods in rest assured and none of them worked for me so far. Need help!</p>
  
  <pre><code>    RequestSpecification requestSpec;
      String baseURI = "http://qa3-phoenix.labcorp.com";
      String basePath = "/phx-rest/healthcheck/ping";
      RestAssured.useRelaxedHTTPSValidation();
      RestAssured.baseURI = baseURI;
      requestSpec = new RequestSpecBuilder()
                  .setContentType(ContentType.JSON)
                  .build();
  
          Response response = RestAssured
                  .given()
                      .spec(requestSpec)
                      .auth().basic("username","password")
                  .when()
                      .get(basePath)
                  .then()
                      .extract().response();
  </code></pre>