From 8ab35b27bddf1898c360d1c598e81eb7cbc2f6d1 Mon Sep 17 00:00:00 2001 From: Jonathan Bernard Date: Thu, 25 Sep 2014 02:33:26 -0500 Subject: [PATCH] HttpContext response return integer status values, not strings. --- project.properties | 6 +++--- src/main/com/jdbernard/net/HttpContext.groovy | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/project.properties b/project.properties index 3d65818..c9271c1 100644 --- a/project.properties +++ b/project.properties @@ -1,6 +1,6 @@ -#Sun, 21 Sep 2014 03:05:17 -0500 +#Thu, 25 Sep 2014 02:29:18 -0500 name=jdb-util -version=2.3 +version=2.4 lib.local=true -build.number=9 +build.number=1 diff --git a/src/main/com/jdbernard/net/HttpContext.groovy b/src/main/com/jdbernard/net/HttpContext.groovy index 34e31ba..3ebb8a7 100644 --- a/src/main/com/jdbernard/net/HttpContext.groovy +++ b/src/main/com/jdbernard/net/HttpContext.groovy @@ -157,7 +157,7 @@ public class HttpContext { writer.flush() def line = reader.readLine().trim() - result.status = line.split(/\s/)[1] + result.status = line.split(/\s/)[1] as int line = reader.readLine().trim() boolean isChunked = false