Commit graph

64 commits

Author SHA1 Message Date
Eitaro Fukamachi
0ec31a24a6 Suppress loading messages in find-package-or-load. 2016-02-08 16:18:16 +09:00
Eitaro Fukamachi
1905bfb718 Merge pull request #16 from fukamachi/fix-session-store-dbi
Fix lack-session-store-dbi to allow UTF-8 data
2015-11-19 19:28:02 +09:00
Eitaro Fukamachi
4f07c50b6c Fix an error when storing UTF-8 data to DBI session store. 2015-11-19 18:05:04 +09:00
Eitaro Fukamachi
3a74575651 Show warnings when deserializing a session failed. 2015-11-19 18:02:07 +09:00
Matthew Stickney
760d065e51 Don't leak sessions when changing session id.
Previously COMMIT was generating a new id for the session but not
communicating it to the caller, so when FINALIZE-STATE was called it
resent the old id to the client and the session was lost (the leak).

Instead, generate the (possibly) new id in FINALIZE and pass it to
COMMIT and FINALIZE-STATE, which will send the new id to the client.
2015-10-09 13:32:59 -04:00
Eitaro Fukamachi
13677d3ad2 Fix not to expire sessions permanently (fixes #13). 2015-10-09 14:11:44 +09:00
Eitaro Fukamachi
d4cdb5315d Add :keep-empty option to Lack.Middleware.Session for preventing from sending Set-Cookie header until the session is used. 2015-09-26 15:45:38 +09:00
Eitaro Fukamachi
0d4c0a1ad8 Don't send Set-Cookie header if the cookie already exists. 2015-09-26 14:52:27 +09:00
Eitaro Fukamachi
d49b740a33 Add :new-session t to lack.session.options if no session is stored yet. 2015-09-26 14:25:02 +09:00
Eitaro Fukamachi
0cc7f9fb98 Fix the indentation in lack.middleware.session.state.cookie. 2015-09-26 14:14:36 +09:00
Eitaro Fukamachi
e25965ec60 Replace cl-fad by UIOP. 2015-08-27 08:01:51 +09:00
Eitaro Fukamachi
fd0ca964ae Fix lack-middleware-backtrace and tests of lack-middleware-static for CLISP support. 2015-08-20 02:57:13 +09:00
Rudolph-Miller
626e527702 to-app. 2015-06-11 22:19:33 +09:00
Eitaro Fukamachi
4bc4617dbd Allow a string for 'response-body' in lack response objects. 2015-06-05 11:00:42 +09:00
Eitaro Fukamachi
8b528cb0c0 Fix an error of lack.middleware.static in a case that the path-info contains some special characters like '?'.
This fixes fukamachi/clack#111.
2015-06-03 13:20:02 +09:00
Andrey Kutejko
823216ac40 allow session middleware to wrap delayed response 2015-05-28 13:15:52 +03:00
Eitaro Fukamachi
e80f4e2ebc Redefine to-app as a generic function. 2015-03-26 08:51:23 +09:00
Eitaro Fukamachi
f7cc256fa1 Allow a middleware object in builder. 2015-03-26 07:20:00 +09:00
Eitaro Fukamachi
ffaaebf0bc Add docstrings to middlewares. 2015-03-25 02:40:24 +09:00
Eitaro Fukamachi
4a59a228e6 Move find-middleware from lack.builder to lack.util. 2015-03-25 02:08:26 +09:00
Eitaro Fukamachi
5ff6ffb919 Add more tests of lack-builder, mainly for old Clack middlewares. 2015-03-24 16:19:19 +09:00
Eitaro Fukamachi
4891bfd388 Delete otherwise clause because there's no possibility that any other types come as a middleware. 2015-03-24 16:08:55 +09:00
Eitaro Fukamachi
d6815bb8ff Add default headers to ENV generate-env returns. 2015-03-24 15:41:25 +09:00
Eitaro Fukamachi
7106525601 Validate session ID. 2015-03-22 22:13:21 +09:00
Rudolph-Miller
7236640a1c accesslog with response which body is vector. 2015-03-22 21:42:44 +09:00
Eitaro Fukamachi
77f99b4c18 Replace defvar by defparameter for middleware definitions. 2015-03-22 16:10:53 +09:00
Eitaro Fukamachi
1e1eff01c0 Delete the default methods of lack-session-state because those are useless since it's a base class. 2015-03-22 16:03:15 +09:00
Eitaro Fukamachi
ac9e556dbb Delete lack.handler because it's a scope of Clack, not Lack. 2015-03-22 14:33:40 +09:00
Eitaro Fukamachi
ec22fa208f Test without HTTP requests. 2015-03-22 14:30:53 +09:00
Eitaro Fukamachi
5347556b93 Delete eval. 2015-03-22 11:18:18 +09:00
Rudolph-Miller
adba550711 fix bug with conditional middleware 2015-03-22 02:33:54 +09:00
Eitaro Fukamachi
a4b4411455 Add lack-session-store-dbi. 2015-03-22 01:12:50 +09:00
Eitaro Fukamachi
aa55f761a0 Fix lack.builder to be able to specify a middleware identifier in hyphenated keywords. 2015-03-22 00:09:01 +09:00
Eitaro Fukamachi
0351d23d1b Add lack-middleware-auth-basic. 2015-03-22 00:07:11 +09:00
Eitaro Fukamachi
2930994eb1 Allow lack-component at the last of builder. 2015-03-21 02:31:36 +09:00
Eitaro Fukamachi
3e46375783 Add lack-component. 2015-03-21 02:30:08 +09:00
Eitaro Fukamachi
9fd299e6c4 Use :request-method and :request-uri in ENV like Clack does. 2015-03-21 02:11:20 +09:00
Eitaro Fukamachi
3b7c522907 Add lack.middleware.csrf. 2015-03-21 00:53:29 +09:00
Eitaro Fukamachi
d59f06a954 Change ENV destructively in make-request. 2015-03-21 00:48:40 +09:00
Eitaro Fukamachi
4359497b3e Add use-default-middlewares option to lackup (The default is T). 2015-03-13 15:56:14 +09:00
Eitaro Fukamachi
f182f02b5a Fix Lack.builder to handle normal forms properly. 2015-03-13 13:08:40 +09:00
Eitaro Fukamachi
751301fed5 Export middlewares in middleware packages. 2015-03-13 12:02:54 +09:00
Eitaro Fukamachi
befd96f5ed Don't muffle errors in lack.middleware.backtrace by default. 2015-03-13 11:17:06 +09:00
Eitaro Fukamachi
0937577b5c Allow old Clack middlewares in lack.builder. 2015-03-13 11:10:42 +09:00
Eitaro Fukamachi
037b7060e7 Store parsed query-parameters, body-parameters and cookies in ENV. 2015-03-13 10:56:34 +09:00
Eitaro Fukamachi
e9a3c4c9a0 Tweak lack.response. 2015-03-13 10:52:00 +09:00
Eitaro Fukamachi
09c134e952 Add lack.middleware.backtrace. 2015-03-13 10:49:15 +09:00
Eitaro Fukamachi
3ab09b2f78 Add tests for lack.middleware.session. 2015-03-12 21:33:08 +09:00
Eitaro Fukamachi
c4a5637f6b Make it compatible to the latest HTTP-Body. 2015-03-12 21:30:54 +09:00
Eitaro Fukamachi
481ca86e30 Fix lack.middleware.session. 2015-03-12 21:30:48 +09:00