Commits

Sam Adams committed 0b28e2e

Disable content negotiation for file resources

  • Participants
  • Parent commits 44fb9e8

Comments (0)

Files changed (1)

File chempound-webapp/src/main/java/net/chempound/webapp/content/FileResource.java

         this.tripleStore = tripleStore;
         this.resourceStore = resourceStore;
         this.tagFactory = tagFactory;
+
+        setNegotiated(false);
     }
 
     @Override
     protected void doInit() {
-        final LocalResource resource;
         try {
             final String path = getReference().getRemainingPart(true, false);
-            resource = resourceStore.retrieveItem(path);
+            final LocalResource resource = resourceStore.retrieveItem(path);
 
             if (resource == null || !resource.isAvailable()) {
                 setExisting(false);