imgix / imgix-java

A Java client library for generating URLs with imgix
https://www.imgix.com
BSD 2-Clause "Simplified" License
19 stars 8 forks source link

feat(https): use https by default #38

Closed ericdeansanchez closed 4 years ago

ericdeansanchez commented 4 years ago

feat(https): use https by default

Description

This PR changes the default behavior of the single-argument URLBuilder constructor. This change ensures that a default constructed URLBuilder has its useHttps member variable set to true so that urls are generated for the https scheme.

Change (Breaking)

This change in behavior represents a breaking change.

Before

Prior to this change, users could rely on a default-constructed URLBuilder's useHttps member variable to be false. This meant that generated urls would have their scheme set to "http" by default.

Now

Now, URLBuilder's useHttps member variable is set to true. This means that generated urls now have their scheme set to "https".

Testing

Misc

In the initial commit, IntelliJ tried to sneak in some spelling suggestions.

The suggested change was erroneously pushed with the above commit. IntelliJ was right in that a change could/should be made.

An extra a does improve the grammar of the exception message of which it is now part of.

We also took this opportunity to reformat the code base to indent files with spaces instead of tab characters (for more consistency).