diff options
| author | Jesse Plamondon-Willard <github@jplamondonw.com> | 2017-11-28 18:53:08 -0500 |
|---|---|---|
| committer | Jesse Plamondon-Willard <github@jplamondonw.com> | 2017-11-28 18:53:08 -0500 |
| commit | 051b0c9bdacd86c18fe4b2a3419fe469e732c9ed (patch) | |
| tree | 2750eff80ca9dc37d98faa3ebd718d506ddd3d3b | |
| parent | c81520e0bc3433ca7165fbea9b8eaa31eb53a694 (diff) | |
| download | SMAPI-051b0c9bdacd86c18fe4b2a3419fe469e732c9ed.tar.gz SMAPI-051b0c9bdacd86c18fe4b2a3419fe469e732c9ed.tar.bz2 SMAPI-051b0c9bdacd86c18fe4b2a3419fe469e732c9ed.zip | |
fix API always redirecting to HTTPS when accessed via subdomain
| -rw-r--r-- | docs/release-notes.md | 7 | ||||
| -rw-r--r-- | src/SMAPI.Web/Startup.cs | 1 |
2 files changed, 5 insertions, 3 deletions
diff --git a/docs/release-notes.md b/docs/release-notes.md index 338a0f9e..833f96b4 100644 --- a/docs/release-notes.md +++ b/docs/release-notes.md @@ -3,7 +3,8 @@ * For players: * Fixed error when a mod loads custom assets on Linux/Mac. * Fixed error when a mod has an invalid `EntryDLL` filename. - * Fixed rare error when Mac adds an `mcs` file to the installer package. + * Fixed error when checking for updates on Linux/Mac due to API HTTPS redirect. + * Fixed error when Mac adds an `mcs` symlink to the installer package. * Fixed `player_add` command not handling tool upgrade levels. * Updated compatibility list. * The [log parser][] no longer expires logs after a week. @@ -11,8 +12,8 @@ * For modders: * Added `DaysSinceStart` property to `SDate` dates. - * Fixed input `e.SuppressButton(button)` method ignoring input. - * Fixed input `e.SuppressButton()` method not working with mouse buttons. + * Fixed input events' `e.SuppressButton(button)` method ignoring specified button. + * Fixed input events' `e.SuppressButton()` method not working with mouse buttons. ## 2.1 * For players: diff --git a/src/SMAPI.Web/Startup.cs b/src/SMAPI.Web/Startup.cs index 799fb0f8..16952124 100644 --- a/src/SMAPI.Web/Startup.cs +++ b/src/SMAPI.Web/Startup.cs @@ -80,6 +80,7 @@ namespace StardewModdingAPI.Web shouldRewrite: req => req.Host.Host != "localhost" && !req.Path.StartsWithSegments("/api") + && !req.Host.Host.StartsWith("api.") )) // convert subdomain.smapi.io => smapi.io/subdomain for routing |
