Skip to content

Instantly share code, notes, and snippets.

@bbrowning
Created April 8, 2014 18:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bbrowning/10164920 to your computer and use it in GitHub Desktop.
Save bbrowning/10164920 to your computer and use it in GitHub Desktop.
diff --git a/servlet/src/test/java/io/undertow/servlet/test/streams/ServletInputStreamTestCase.java b/servlet/src/test/java/io/undertow/servlet/test/streams/ServletInputStreamTestCase.java
index fb00498..d423189 100644
--- a/servlet/src/test/java/io/undertow/servlet/test/streams/ServletInputStreamTestCase.java
+++ b/servlet/src/test/java/io/undertow/servlet/test/streams/ServletInputStreamTestCase.java
@@ -95,6 +95,16 @@ public class ServletInputStreamTestCase {
//}
}
+ @Test
+ public void testAsyncServletInputStreamWithEmptyRequestBody() {
+ String message = "";
+ try {
+ runTest(message, ASYNC_SERVLET);
+ } catch (Throwable e) {
+ throw new RuntimeException("test failed", e);
+ }
+ }
+
private void runTestViaJavaImpl(final String message, String url)
throws IOException {
HttpURLConnection urlcon = null;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment