Check for escaped labels in binary file paths as well
See gh-264
This commit is contained in:
@@ -85,4 +85,11 @@ public class ResourceControllerTests {
|
||||
assertEquals("foo: dev_bar/spam", resource);
|
||||
}
|
||||
|
||||
@Test
|
||||
public void labelWithSlashForBinary() throws Exception {
|
||||
this.environmentRepository.setSearchLocations("classpath:/test");
|
||||
byte[] resource = this.controller.binary("foo", "bar", "dev(_)spam", "foo.txt");
|
||||
assertEquals("foo: dev_bar/spam", new String(resource));
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user