#44 - Rename variable.
1 files changed, 6 insertions(+), 6 deletions(-)

M src/main/java/com/ajtjp/geminiclient/GeminiClient.java
M src/main/java/com/ajtjp/geminiclient/GeminiClient.java +6 -6
@@ 79,21 79,21 @@ public class GeminiClient {
     private static byte[] fetchServerResponse(InputStream is) throws IOException {
         byte[] serverResponse = new byte[4096];
         byte[] buffer = new byte[2000];
-        int fileContentsIndex = 0;
+        int serverResponseIndex = 0;
         while (true) {
             int bytesRead = is.read(buffer, 0, 2000);
             if (bytesRead == -1) {
-                serverResponse = trimBufferToSize(serverResponse, fileContentsIndex);
+                serverResponse = trimBufferToSize(serverResponse, serverResponseIndex);
                 break;
             }
             
             //expand and re-allocate wholeBuffer if need be
-            if (fileContentsIndex + bytesRead > serverResponse.length) {
-                serverResponse = expandFileContents(serverResponse, fileContentsIndex);
+            if (serverResponseIndex + bytesRead > serverResponse.length) {
+                serverResponse = expandFileContents(serverResponse, serverResponseIndex);
             }
             
-            System.arraycopy(buffer, 0, serverResponse, fileContentsIndex, bytesRead);
-            fileContentsIndex += bytesRead;
+            System.arraycopy(buffer, 0, serverResponse, serverResponseIndex, bytesRead);
+            serverResponseIndex += bytesRead;
         }
         return serverResponse;
     }