Browse Source

Remove HTTPS redirect

mj-deploy
Standa Lukeš 4 years ago
parent
commit
47388c67da
  1. 7
      server/Ksp.WebServer/Startup.cs

7
server/Ksp.WebServer/Startup.cs

@ -46,15 +46,8 @@ namespace Ksp.WebServer
// This method gets called by the runtime. Use this method to configure the HTTP request pipeline. // This method gets called by the runtime. Use this method to configure the HTTP request pipeline.
public void Configure(IApplicationBuilder app, IWebHostEnvironment env) public void Configure(IApplicationBuilder app, IWebHostEnvironment env)
{
if (env.IsDevelopment())
{ {
app.UseDeveloperExceptionPage(); app.UseDeveloperExceptionPage();
}
else
{
app.UseHttpsRedirection();
}
app.UseRouting(); app.UseRouting();