Skip to content
This repository was archived by the owner on Jul 9, 2023. It is now read-only.

Commit 60c23d7

Browse files
committed
Merge pull request #34 from davidchiew/stringFormatBug
Fixed issue where string.Format parameters were not in sequence
2 parents a92ac4c + 9474c03 commit 60c23d7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Titanium.Web.Proxy/EventArguments/SessionEventArgs.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -326,7 +326,7 @@ public void Ok(string html)
326326
var result = Encoding.Default.GetBytes(html);
327327

328328
var connectStreamWriter = new StreamWriter(this.Client.ClientStream);
329-
connectStreamWriter.WriteLine(string.Format("{0} {2} {3}", ProxySession.Request.HttpVersion, 200, "Ok"));
329+
connectStreamWriter.WriteLine(string.Format("{0} {1} {2}", ProxySession.Request.HttpVersion, 200, "Ok"));
330330
connectStreamWriter.WriteLine("Timestamp: {0}", DateTime.Now);
331331
connectStreamWriter.WriteLine("content-length: " + result.Length);
332332
connectStreamWriter.WriteLine("Cache-Control: no-cache, no-store, must-revalidate");

0 commit comments

Comments
 (0)