[FEATURE] Proxy returns the correct Content-type

This commit is contained in:
Maxime Sinclair
2013-12-02 12:45:11 +01:00
parent b9d71300df
commit 4c845a5dcd
2 changed files with 22 additions and 4 deletions

View File

@@ -19,7 +19,7 @@ public class TestProxy extends WebappTestCase {
WebResponse response = conversation.getResource(request);
// Analyze response
// Verifies the Content-Type header
// assertEquals( "Response content type is not PNG", "image/png", response.getContentType());
assertEquals( "Response content type is not PNG", "image/png", response.getContentType());
// Get the image and verify its size (~2000 bytes)
InputStream responseStream = response.getInputStream();
ByteArrayOutputStream imageStream = new ByteArrayOutputStream();