* HomeController.cs: Cleans a duplicate import
* SimpleJsonPostMethod.cs: The credential header had to be "Set"ed, not "Add"ed
This commit is contained in:
@ -7,15 +7,14 @@ using System.Web;
|
||||
using System.Web.Configuration;
|
||||
using System.Web.Mvc;
|
||||
using System.Web.Mvc.Ajax;
|
||||
using Yavsc;
|
||||
using System.Reflection;
|
||||
using System.Resources;
|
||||
using Yavsc.Model;
|
||||
using Npgsql.Web;
|
||||
using ITContentProvider;
|
||||
using Yavsc;
|
||||
using Npgsql.Web.Blog;
|
||||
using Yavsc.Helpers;
|
||||
using Yavsc;
|
||||
|
||||
namespace Yavsc.Controllers
|
||||
{
|
||||
|
@ -51,7 +51,7 @@ namespace Yavsc.Helpers
|
||||
/// </summary>
|
||||
/// <param name="cred">Cred.</param>
|
||||
public void SetCredential(string cred) {
|
||||
Request.Headers.Add(HttpRequestHeader.Authorization,cred);
|
||||
Request.Headers.Set(HttpRequestHeader.Authorization,cred);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
Reference in New Issue
Block a user