Skip to content
This repository was archived by the owner on Mar 3, 2026. It is now read-only.

Commit a2ad5f6

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

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

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)