Explorar el Código

Merge pull request #90 from sauliusgrigaitis/master

Fixed '++' deprecation
Damian Kołakowski hace 10 años
padre
commit
3fc7cb2557
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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
     }