Skip to content

Commit

Permalink
and to exceptions too
Browse files Browse the repository at this point in the history
  • Loading branch information
buildmaster committed Sep 7, 2009
1 parent 524fd16 commit a9cf5a7
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
12 changes: 12 additions & 0 deletions Core/OAuth.MVC.Library/OAuth.MVC.Library.csproj
Expand Up @@ -69,6 +69,11 @@
<Compile Include="Properties\AssemblyInfo.cs" />
<Compile Include="Results\OAuthExceptionResult.cs" />
<Compile Include="Results\OAuthTokenResult.cs" />
<Compile Include="Settings.Designer.cs">
<AutoGen>True</AutoGen>
<DesignTimeSharedInput>True</DesignTimeSharedInput>
<DependentUpon>Settings.settings</DependentUpon>
</Compile>
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\OAuth.Core\OAuth.Core.csproj">
Expand All @@ -80,6 +85,13 @@
<Name>OAuth.Web</Name>
</ProjectReference>
</ItemGroup>
<ItemGroup>
<None Include="app.config" />
<None Include="Settings.settings">
<Generator>SettingsSingleFileGenerator</Generator>
<LastGenOutput>Settings.Designer.cs</LastGenOutput>
</None>
</ItemGroup>
<ItemGroup>
<Folder Include="Configuration\" />
<Folder Include="Errors\" />
Expand Down
2 changes: 1 addition & 1 deletion Core/OAuth.MVC.Library/Results/OAuthExceptionResult.cs
Expand Up @@ -30,7 +30,7 @@ public override void ExecuteResult(ControllerContext context)
break;
}

response.AddHeader("WWW-Authenticate",string.Format("OAuth Realm=\"{0}\"",_exception.Context.Realm));
response.AddHeader("WWW-Authenticate",string.Format("OAuth Realm=\"{0}\"",Settings.Default.Realm));
response.Write(_exception.Report.ToString());
}
}
Expand Down

0 comments on commit a9cf5a7

Please sign in to comment.