Sfoglia il codice sorgente

Fixed '++' deprecation

Saulius Grigaitis 10 anni fa
parent
commit
cbf78382ce
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  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
     }