Skip to content

Commit a2ad5f6

Browse files
committed
Adds NativeRequest attributes to locals map
1 parent 3108b5e commit a2ad5f6

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

jooby/src/main/java/org/jooby/internal/HttpHandlerImpl.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -227,6 +227,8 @@ public void handle(final NativeRequest request, final NativeResponse response) t
227227
requestPath = rpath.apply(requestPath);
228228
}
229229

230+
// put request attributes first to make sure we don't override defaults
231+
locals.putAll(request.attributes());
230232
// default locals
231233
locals.put(CONTEXT_PATH, contextPath);
232234
locals.put(PATH, requestPath);

0 commit comments

Comments
 (0)