diff --git a/OpenSim/Framework/Servers/HttpServer/BaseHttpServer.cs b/OpenSim/Framework/Servers/HttpServer/BaseHttpServer.cs index c187972edf..f2faabbcc3 100644 --- a/OpenSim/Framework/Servers/HttpServer/BaseHttpServer.cs +++ b/OpenSim/Framework/Servers/HttpServer/BaseHttpServer.cs @@ -1256,7 +1256,6 @@ namespace OpenSim.Framework.Servers.HttpServer response.ContentType = "text/plain"; response.StatusCode = 404; response.StatusDescription = "Not Found"; - response.ProtocolVersion = "HTTP/1.0"; responseString = "Not found"; response.KeepAlive = false; @@ -1431,7 +1430,6 @@ namespace OpenSim.Framework.Servers.HttpServer response.ContentType = "text/plain"; response.StatusCode = 404; response.StatusDescription = "Not Found"; - response.ProtocolVersion = "HTTP/1.0"; buffer = Encoding.UTF8.GetBytes("Not found"); } else diff --git a/OpenSim/Framework/Servers/HttpServer/OSHttpServer/HttpClientContext.cs b/OpenSim/Framework/Servers/HttpServer/OSHttpServer/HttpClientContext.cs index c03650a64f..f5968b445a 100644 --- a/OpenSim/Framework/Servers/HttpServer/OSHttpServer/HttpClientContext.cs +++ b/OpenSim/Framework/Servers/HttpServer/OSHttpServer/HttpClientContext.cs @@ -396,7 +396,7 @@ namespace OSHttpServer LogWriter.Write(this, LogPrio.Warning, "Bad request, responding with it. Error: " + err); try { - Respond("HTTP/1.0", HttpStatusCode.BadRequest, err.Message); + Respond("HTTP/1.1", HttpStatusCode.BadRequest, err.Message); } catch (Exception err2) { diff --git a/OpenSim/Framework/Servers/HttpServer/OSHttpServer/HttpResponse.cs b/OpenSim/Framework/Servers/HttpServer/OSHttpServer/HttpResponse.cs index 76ad1979c6..1b0a188847 100644 --- a/OpenSim/Framework/Servers/HttpServer/OSHttpServer/HttpResponse.cs +++ b/OpenSim/Framework/Servers/HttpServer/OSHttpServer/HttpResponse.cs @@ -39,7 +39,7 @@ namespace OSHttpServer { m_httpVersion = request.HttpVersion; if (string.IsNullOrEmpty(m_httpVersion)) - m_httpVersion = "HTTP/1.0"; + m_httpVersion = "HTTP/1.1"; Status = HttpStatusCode.OK; m_context = context; @@ -222,7 +222,7 @@ namespace OSHttpServer var sb = new StringBuilder(); if(string.IsNullOrWhiteSpace(m_httpVersion)) - sb.AppendFormat("HTTP1/0 {0} {1}\r\n", (int)Status, + sb.AppendFormat("HTTP/1.1 {0} {1}\r\n", (int)Status, string.IsNullOrEmpty(Reason) ? Status.ToString() : Reason); else sb.AppendFormat("{0} {1} {2}\r\n", m_httpVersion, (int)Status,