diff options
author | lbsa71 | 2007-12-27 21:41:48 +0000 |
---|---|---|
committer | lbsa71 | 2007-12-27 21:41:48 +0000 |
commit | efd90b56b761219af6425b1c7a2cdd3b6ffb4de2 (patch) | |
tree | bf5b897e1e3c13211e3e2fc61d30508b94c928c0 /OpenSim/Framework/Servers/RestObjectPoster.cs | |
parent | * removed always true if (diff) | |
download | opensim-SC_OLD-efd90b56b761219af6425b1c7a2cdd3b6ffb4de2.zip opensim-SC_OLD-efd90b56b761219af6425b1c7a2cdd3b6ffb4de2.tar.gz opensim-SC_OLD-efd90b56b761219af6425b1c7a2cdd3b6ffb4de2.tar.bz2 opensim-SC_OLD-efd90b56b761219af6425b1c7a2cdd3b6ffb4de2.tar.xz |
* Optimized usings
* shortened references
* Removed redundant 'this'
* Normalized EOF
Diffstat (limited to 'OpenSim/Framework/Servers/RestObjectPoster.cs')
-rw-r--r-- | OpenSim/Framework/Servers/RestObjectPoster.cs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/OpenSim/Framework/Servers/RestObjectPoster.cs b/OpenSim/Framework/Servers/RestObjectPoster.cs index b1565f1..212361c 100644 --- a/OpenSim/Framework/Servers/RestObjectPoster.cs +++ b/OpenSim/Framework/Servers/RestObjectPoster.cs | |||
@@ -1,4 +1,4 @@ | |||
1 | /* | 1 | /* |
2 | * Copyright (c) Contributors, http://opensimulator.org/ | 2 | * Copyright (c) Contributors, http://opensimulator.org/ |
3 | * See CONTRIBUTORS.TXT for a full list of copyright holders. | 3 | * See CONTRIBUTORS.TXT for a full list of copyright holders. |
4 | * | 4 | * |
@@ -44,7 +44,7 @@ namespace OpenSim.Framework.Servers | |||
44 | 44 | ||
45 | public static void BeginPostObject<TRequest>(string verb, string requestUrl, TRequest obj) | 45 | public static void BeginPostObject<TRequest>(string verb, string requestUrl, TRequest obj) |
46 | { | 46 | { |
47 | Type type = typeof(TRequest); | 47 | Type type = typeof (TRequest); |
48 | 48 | ||
49 | WebRequest request = WebRequest.Create(requestUrl); | 49 | WebRequest request = WebRequest.Create(requestUrl); |
50 | request.Method = verb; | 50 | request.Method = verb; |
@@ -62,7 +62,7 @@ namespace OpenSim.Framework.Servers | |||
62 | writer.Flush(); | 62 | writer.Flush(); |
63 | } | 63 | } |
64 | 64 | ||
65 | int length = (int)buffer.Length; | 65 | int length = (int) buffer.Length; |
66 | request.ContentLength = length; | 66 | request.ContentLength = length; |
67 | 67 | ||
68 | Stream requestStream = request.GetRequestStream(); | 68 | Stream requestStream = request.GetRequestStream(); |
@@ -72,7 +72,7 @@ namespace OpenSim.Framework.Servers | |||
72 | 72 | ||
73 | private static void AsyncCallback(IAsyncResult result) | 73 | private static void AsyncCallback(IAsyncResult result) |
74 | { | 74 | { |
75 | WebRequest request = (WebRequest)result.AsyncState; | 75 | WebRequest request = (WebRequest) result.AsyncState; |
76 | using (WebResponse resp = request.EndGetResponse(result)) | 76 | using (WebResponse resp = request.EndGetResponse(result)) |
77 | { | 77 | { |
78 | } | 78 | } |