Skip to content

Commit d02bd0a

Browse files
author
Steve Pfister
committed
Added a check around the HttpResponse Headers property so that it can return regardless of hosting env. This allows Owin to work
1 parent e3fbccc commit d02bd0a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

mcs/class/referencesource/System.Web/HttpResponse.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -910,10 +910,11 @@ internal HttpCookieCollection GetCookiesNoCreate() {
910910

911911
public NameValueCollection Headers {
912912
get {
913+
#if (!MONO || !FEATURE_PAL)
913914
if ( !(_wr is IIS7WorkerRequest) ) {
914915
throw new PlatformNotSupportedException(System.Web.SR.GetString(System.Web.SR.Requires_Iis_Integrated_Mode));
915916
}
916-
917+
#endif
917918
if (_headers == null) {
918919
_headers = new HttpHeaderCollection(_wr, this, 16);
919920
}

0 commit comments

Comments
 (0)