From 90c249f74bda9d718b0392bf1f70c3d44ec5cb71 Mon Sep 17 00:00:00 2001 From: ulrich Date: Wed, 30 Jun 2021 10:09:27 +0000 Subject: [PATCH] auf Attribute des HttpContext umgestellt --- src/de/uhilger/httpserver/adoc/AdocFilter.java | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/src/de/uhilger/httpserver/adoc/AdocFilter.java b/src/de/uhilger/httpserver/adoc/AdocFilter.java index 137dbec..4416177 100644 --- a/src/de/uhilger/httpserver/adoc/AdocFilter.java +++ b/src/de/uhilger/httpserver/adoc/AdocFilter.java @@ -55,7 +55,7 @@ HttpHandler handler = exchange.getHttpContext().getHandler(); if(handler instanceof FileHandler) { FileHandler fileHandler = (FileHandler) handler; - String fileBase = fileHandler.getFileBase(); + String fileBase = exchange.getHttpContext().getAttributes().get(FileHandler.ATTR_FILE_BASE).toString(); AdocActor actor = new AdocActor(); actor.processAdocFile(new File(fileBase, fileHandler.getFileName(exchange)), Boolean.FALSE.toString()); } -- Gitblit v1.9.3