* HomeController.cs: Cleans a duplicate import
* SimpleJsonPostMethod.cs: The credential header had to be "Set"ed, not "Add"ed
This commit is contained in:
parent
d31383d83b
commit
c943606b43
2 changed files with 2 additions and 3 deletions
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue