aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Framework/WebUtil.cs
diff options
context:
space:
mode:
authorOren Hurvitz2014-03-25 19:09:03 +0200
committerOren Hurvitz2014-03-25 18:09:23 +0100
commit6d1d58b6549daea0183b70a1c702e3017abb9663 (patch)
tree3bd5ce0ff0f501dcccccc24915b7e00207563d47 /OpenSim/Framework/WebUtil.cs
parentUse the "Content-Encoding" header to indicate gzipped streams (diff)
downloadopensim-SC-6d1d58b6549daea0183b70a1c702e3017abb9663.zip
opensim-SC-6d1d58b6549daea0183b70a1c702e3017abb9663.tar.gz
opensim-SC-6d1d58b6549daea0183b70a1c702e3017abb9663.tar.bz2
opensim-SC-6d1d58b6549daea0183b70a1c702e3017abb9663.tar.xz
Use the "X-Content-Encoding" header to indicate gzipped data, because old OpenSims fail if they get an unknown "Content-Encoding"
Diffstat (limited to '')
-rw-r--r--OpenSim/Framework/WebUtil.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/OpenSim/Framework/WebUtil.cs b/OpenSim/Framework/WebUtil.cs
index 3972c06..eb3633a 100644
--- a/OpenSim/Framework/WebUtil.cs
+++ b/OpenSim/Framework/WebUtil.cs
@@ -254,7 +254,7 @@ namespace OpenSim.Framework
254 254
255 if (compressed) 255 if (compressed)
256 { 256 {
257 request.Headers["Content-Encoding"] = "gzip"; 257 request.Headers["X-Content-Encoding"] = "gzip"; // can't set "Content-Encoding" because old OpenSims fail if they get an unrecognized Content-Encoding
258 258
259 using (MemoryStream ms = new MemoryStream()) 259 using (MemoryStream ms = new MemoryStream())
260 { 260 {