瀏覽代碼

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
     }