Skip to content

Commit

Permalink
Added Authorization header to supported request properties in HttpURL…
Browse files Browse the repository at this point in the history
…Connection in Sharpen
  • Loading branch information
zahhak committed Dec 19, 2012
1 parent 2766376 commit c812122
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Sharpen/Sharpen/HttpURLConnection.cs
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,8 @@ public void SetChunkedStreamingMode (int n)

public void SetRequestProperty (string key, string value)
{
switch (key.ToLower ()) {
switch (key.ToLower ()) {
case "authorization": request.Headers["Authorization"] = value; break;
case "user-agent": request.UserAgent = value; break;
case "content-length": request.ContentLength = long.Parse (value); break;
case "content-type": request.ContentType = value; break;
Expand Down

0 comments on commit c812122

Please sign in to comment.