dotnet / aspnetcore

ASP.NET Core is a cross-platform .NET framework for building modern cloud-based web applications on Windows, Mac, or Linux.
https://asp.net
MIT License
35.43k stars 10.01k forks source link

Helios OWIN environment dictionary cannot be enumerated #98

Closed jchannon closed 9 years ago

jchannon commented 10 years ago

When using Helios with OWIN, any middleware that does any enumeration/LINQ on the OWIN environment eg/env.First() results in an exception with the message This API can only be called if the request is being served over HTTPS.

This can be got around by accessing items via the index/specific key and/or using ContainsKey but does seem a bit odd that you get a SSL message when trying to do enumeration.

It also means I can't log out all the items in the OWIN dictionary:

foreach (var item in env)
{
  Debug.WriteLine(item.Key + " : " + item.Value);
}

UPDATE : I'm referring to this <package id="Microsoft.Owin.Host.IIS" version="1.0.0-alpha1" targetFramework="net45" />

philjones88 commented 10 years ago

:-1: Hitting this too.

Praburaj commented 9 years ago

This looks like a bug related to OWIN based Helios. @GrabYourPitchforks is there a better place where OWIN based Helios bugs can go?

GrabYourPitchforks commented 9 years ago

This issue is now resolved in the Katana-based version pending the next release.