60 |
// Note: for the legacy string content to work, we need to be able |
// Note: for the legacy string content to work, we need to be able |
61 |
// to load GZZ1 diffs as text blocks (see GZZ1Handler.LegacyContent |
// to load GZZ1 diffs as text blocks (see GZZ1Handler.LegacyContent |
62 |
// javadoc for more info). |
// javadoc for more info). |
63 |
if(!contentType.equals("text/plain; charset=UTF-8") && |
if(!contentType.equals(AbstractScrollBlock.plainText) && |
64 |
!contentType.equals("application/x-gzigzag-GZZ1") && |
!contentType.equals(AbstractScrollBlock.gzz1) && |
65 |
!contentType.equals("message/rfc822")) { |
!contentType.equals("message/rfc822")) { |
66 |
throw new Error("Unknown text block content type '"+ |
throw new Error("Unknown text block content type '"+ |
67 |
contentType+"'"); |
contentType+"'"); |