From 9474c03ef36c63d068774e207988366c21716ab7 Mon Sep 17 00:00:00 2001 From: David Chiew Date: Wed, 20 Jan 2016 15:42:34 +1100 Subject: [PATCH] Fixed issue where string.Format parameters were not in sequence --- Titanium.Web.Proxy/EventArguments/SessionEventArgs.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Titanium.Web.Proxy/EventArguments/SessionEventArgs.cs b/Titanium.Web.Proxy/EventArguments/SessionEventArgs.cs index d0ad2fc35..0d60ec8fb 100644 --- a/Titanium.Web.Proxy/EventArguments/SessionEventArgs.cs +++ b/Titanium.Web.Proxy/EventArguments/SessionEventArgs.cs @@ -326,7 +326,7 @@ public void Ok(string html) var result = Encoding.Default.GetBytes(html); var connectStreamWriter = new StreamWriter(this.Client.ClientStream); - connectStreamWriter.WriteLine(string.Format("{0} {2} {3}", ProxySession.Request.HttpVersion, 200, "Ok")); + connectStreamWriter.WriteLine(string.Format("{0} {1} {2}", ProxySession.Request.HttpVersion, 200, "Ok")); connectStreamWriter.WriteLine("Timestamp: {0}", DateTime.Now); connectStreamWriter.WriteLine("content-length: " + result.Length); connectStreamWriter.WriteLine("Cache-Control: no-cache, no-store, must-revalidate");