ソースを参照

Fixed '++' deprecation

Saulius Grigaitis 10 年 前
コミット
cbf78382ce
1 ファイル変更1 行追加1 行削除
  1. 1 1
      Sources/HttpParser.swift

+ 1 - 1
Sources/HttpParser.swift

@@ -51,7 +51,7 @@ class HttpParser {
         var counter = 0
         while counter < size {
             body.append(try socket.read())
-            counter++
+            counter += 1
         }
         return body
     }