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 /src/SMAPI.Web | |
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
Diffstat (limited to 'src/SMAPI.Web')
-rw-r--r-- | src/SMAPI.Web/Startup.cs | 1 |
1 files changed, 1 insertions, 0 deletions
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 |