Update sample4.cs (#4859)
* Update sample4.cs In OWIN version 4.0 (prerelease) you cannot compare string with Path directly. You must get its value first * Update sample4.cspull/4870/head
parent
c190a8dd51
commit
9add7f5ec6
|
@ -6,7 +6,7 @@ public void Configuration(IAppBuilder app)
|
||||||
app.Run(context =>
|
app.Run(context =>
|
||||||
{
|
{
|
||||||
// New code: Throw an exception for this URI path.
|
// New code: Throw an exception for this URI path.
|
||||||
if (context.Request.Path == "/fail")
|
if (context.Request.Path.Equals(new PathString("/fail")))
|
||||||
{
|
{
|
||||||
throw new Exception("Random exception");
|
throw new Exception("Random exception");
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue