diff options
author | Melanie | 2012-03-14 11:33:51 +0000 |
---|---|---|
committer | Melanie | 2012-03-14 11:33:51 +0000 |
commit | c0f70d17fcd93751a8849f7ad1c5a76e5a3d135d (patch) | |
tree | 4b2972bdee4a29c4ecfce11bee9f154c7cdd9873 /OpenSim/Framework | |
parent | Implement llSetPrimitiveParams for physics shape and material. Add (diff) | |
parent | Merge branch 'master' of ssh://opensimulator.org/var/git/opensim (diff) | |
download | opensim-SC_OLD-c0f70d17fcd93751a8849f7ad1c5a76e5a3d135d.zip opensim-SC_OLD-c0f70d17fcd93751a8849f7ad1c5a76e5a3d135d.tar.gz opensim-SC_OLD-c0f70d17fcd93751a8849f7ad1c5a76e5a3d135d.tar.bz2 opensim-SC_OLD-c0f70d17fcd93751a8849f7ad1c5a76e5a3d135d.tar.xz |
Merge branch 'master' into careminster
Conflicts:
OpenSim/Region/ScriptEngine/Shared/Instance/ScriptInstance.cs
OpenSim/Region/ScriptEngine/XEngine/XEngine.cs
Diffstat (limited to 'OpenSim/Framework')
-rw-r--r-- | OpenSim/Framework/MultipartForm.cs | 2 | ||||
-rw-r--r-- | OpenSim/Framework/WebUtil.cs | 7 |
2 files changed, 7 insertions, 2 deletions
diff --git a/OpenSim/Framework/MultipartForm.cs b/OpenSim/Framework/MultipartForm.cs index 90c4007..7a13e8b 100644 --- a/OpenSim/Framework/MultipartForm.cs +++ b/OpenSim/Framework/MultipartForm.cs | |||
@@ -119,7 +119,7 @@ namespace OpenSim.Framework | |||
119 | // Copy the temporary stream to the network stream | 119 | // Copy the temporary stream to the network stream |
120 | formDataStream.Seek(0, SeekOrigin.Begin); | 120 | formDataStream.Seek(0, SeekOrigin.Begin); |
121 | using (Stream requestStream = request.GetRequestStream()) | 121 | using (Stream requestStream = request.GetRequestStream()) |
122 | formDataStream.CopyTo(requestStream, (int)formDataStream.Length); | 122 | formDataStream.CopyStream(requestStream, (int)formDataStream.Length); |
123 | } | 123 | } |
124 | 124 | ||
125 | #endregion Stream Writing | 125 | #endregion Stream Writing |
diff --git a/OpenSim/Framework/WebUtil.cs b/OpenSim/Framework/WebUtil.cs index 71a56e5..aac575c 100644 --- a/OpenSim/Framework/WebUtil.cs +++ b/OpenSim/Framework/WebUtil.cs | |||
@@ -511,8 +511,13 @@ namespace OpenSim.Framework | |||
511 | /// <remarks> | 511 | /// <remarks> |
512 | /// Copying begins at the streams' current positions. The positions are | 512 | /// Copying begins at the streams' current positions. The positions are |
513 | /// NOT reset after copying is complete. | 513 | /// NOT reset after copying is complete. |
514 | /// NOTE!! .NET 4.0 adds the method 'Stream.CopyTo(stream, bufferSize)'. | ||
515 | /// This function could be replaced with that method once we move | ||
516 | /// totally to .NET 4.0. For versions before, this routine exists. | ||
517 | /// This routine used to be named 'CopyTo' but the int parameter has | ||
518 | /// a different meaning so this method was renamed to avoid any confusion. | ||
514 | /// </remarks> | 519 | /// </remarks> |
515 | public static int CopyTo(this Stream copyFrom, Stream copyTo, int maximumBytesToCopy) | 520 | public static int CopyStream(this Stream copyFrom, Stream copyTo, int maximumBytesToCopy) |
516 | { | 521 | { |
517 | byte[] buffer = new byte[4096]; | 522 | byte[] buffer = new byte[4096]; |
518 | int readBytes; | 523 | int readBytes; |