Skip to content

Commit 570e5fb

Browse files
committed
test for netty send headers twice bug
1 parent b61af03 commit 570e5fb

3 files changed

Lines changed: 829 additions & 1 deletion

File tree

coverage-report/pom.xml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -231,6 +231,12 @@
231231
<version>2.1.3</version>
232232
</dependency>
233233

234+
<dependency>
235+
<groupId>org.webjars</groupId>
236+
<artifactId>jquery-ui</artifactId>
237+
<version>1.11.3</version>
238+
</dependency>
239+
234240
<dependency>
235241
<groupId>org.webjars</groupId>
236242
<artifactId>bootstrap</artifactId>

coverage-report/src/test/java/org/jooby/WebJarFeature.java

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ public class WebJarFeature extends ServerFeature {
77

88
{
99
assets("/webjars/**", "/META-INF/resources/webjars/{0}");
10-
10+
assets("/css/**", "/assets/{0}");
1111
}
1212

1313
@Test
@@ -31,6 +31,15 @@ public void jquery() throws Exception {
3131
.header("Content-Length", 127542);
3232
}
3333

34+
@Test
35+
public void jqueryui() throws Exception {
36+
request()
37+
.get("/css/jquery-ui.css")
38+
.expect(200)
39+
.header("Content-Type", "text/css;charset=UTF-8")
40+
.header("Content-Length", 25272);
41+
}
42+
3443
@Test
3544
public void bootstrap() throws Exception {
3645
request()

0 commit comments

Comments
 (0)