Skip to content
Browse files

Add servlet LocalApiProxy property to container to fix LocalChannelSe…

…rvlet and others
  • Loading branch information...
1 parent 3428bd2 commit a68fda5e9f34aca93e08208de0860506eed2754e @FossiFoo FossiFoo committed Mar 16, 2012
Showing with 4 additions and 1 deletion.
  1. +4 −1 src/appengine_magic/core_local.clj
View
5 src/appengine_magic/core_local.clj
@@ -58,7 +58,10 @@
(defn make-appengine-request-environment-filter []
(reify javax.servlet.Filter
- (init [_ _])
+ (init [_ filter-config]
+ (.setAttribute (.getServletContext filter-config)
+ "com.google.appengine.devappserver.ApiProxyLocal"
+ (ApiProxy/getDelegate)))
(destroy [_])
(doFilter [_ req resp chain]
(let [all-cookies (.getCookies req)

0 comments on commit a68fda5

Please sign in to comment.
Something went wrong with that request. Please try again.