Colin Kuskie
b323f74121
Update copyright notice
2011-12-28 11:30:38 -08:00
Scott Walters
7a994b59ce
File assets should always give IO::File::WithPath objects to PSGI, instead of the current redirecting or streaming behavior. ( #11688 )
...
New API method: WebGUI::Response::sendFile; it, as appropriate, calls
setRedirect or setStreamedFile, depending on enableStreamingUploads config var.
setStreamedFile now kicks off the XSendfile process.
File.pm now uses this instead of trying to set both a redirect and a stream.
IO::File::WithPath blows up if a file doesn't exist so this raises an exception
now.
The http now no longer insist that '0' is not a valid filename to stream.
site.psgi, depending on enableStreamingUploads, enables either the Static
or XSendfile middleware.
2011-05-12 20:22:43 -04:00
Scott Walters
57d2dbed56
WebGUI::Session::Http should go away ( #11647 )
...
Move logic out of WebGUI::Session::HTTP and into WebGUI::Session::Response /
::Request; deprecate more functions; change references in core to use
$session->response instead; fix tests that broke because of the change but
not one that merely generate the deprecated warning because I want to know
that the proxying of depricated methods is working. These can be changed later.
2011-05-11 16:17:54 -04:00
Colin Kuskie
e7fcf33a4d
Move ifModifiedSince into WebGUI::Session::Request
2010-11-22 09:53:03 -08:00
Colin Kuskie
995b04e7de
Remove getRedirectLocation and setRedirectLocation from Session::Http
2010-11-22 09:28:14 -08:00
Colin Kuskie
8b6bbdb9f7
Remove setFilename, getFilename from Session::Http, and use Plack::Response methods instead.
2010-11-22 08:06:25 -08:00
Colin Kuskie
fd8f03a186
Change getMimeType and setMimeType to response->content_type.
2010-11-21 22:35:26 -08:00
Colin Kuskie
e5adc07a05
Remove getStatus and setStatus in Session::Http, and replace them with status, from $session->status.
2010-11-21 21:11:41 -08:00
Colin Kuskie
678406d54d
Fix tests that were using var.
2010-11-18 08:40:22 -08:00
Graham Knop
a95ef168cc
remove use of FindBin in tests
2010-09-01 14:05:53 -05:00
Graham Knop
3570b413d3
remove WebGUI::PseudoRequest
2010-08-31 16:01:04 -05:00
Colin Kuskie
19c2c5fa1c
Remove status description from Session/Http, and update all users of setStatus.
2010-06-17 08:18:24 -07:00
Colin Kuskie
a07bf9b84f
Update Session/Http for Plack.
2010-06-16 17:37:55 -07:00
Colin Kuskie
e1c77cf314
Fix the issue with Assets with macro based content not showing the new content to Visitors. Fixes bug #11200 .
2009-11-19 10:04:19 -08:00
Colin Kuskie
4e78593395
Change tests to use the automatic backup of Settings in END blocks.
2009-03-30 20:41:02 +00:00
Graham Knop
24da723629
updating copyright year
2009-02-20 23:47:30 +00:00
Colin Kuskie
334ce4791f
Update test to work with XSS fix.
2008-10-07 21:30:27 +00:00
Colin Kuskie
eca9729d94
update Session/Http to match altered code
2008-09-17 16:18:01 +00:00
JT Smith
93b5ca16e4
updating copyright year
2008-02-07 23:28:18 +00:00
Colin Kuskie
83310ba311
update copyright on tests
2007-07-07 03:56:44 +00:00
Colin Kuskie
97e7621b8a
rewrite Http.t tests to return coverage to its original status before the Http.pm rewrite. The only way to increase it from here is to mock the Apache cookie module
2007-04-06 05:00:00 +00:00
Colin Kuskie
17efbe2186
begin fixing the Http tests
2007-04-03 04:21:04 +00:00
Colin Kuskie
c3b3706e19
repair Http test so that it passes. The entire test needs to be reworked as there are now tons of redundant tests
2007-03-10 04:49:48 +00:00
Colin Kuskie
204046d283
document object mocking
2006-11-09 17:50:59 +00:00
Colin Kuskie
c3a2e71cd1
Mock the Session::Http->getCookies method so that neither it nor
...
setCookie will be called.
2006-11-06 00:50:34 +00:00
Colin Kuskie
568a02a6af
This is as good as it's going to get. In order to push
...
the coverage up any higher, we'd have to reverse engineer
the Apache::Cookie module, figure out what it's doing to
the request.
2006-11-02 00:08:12 +00:00
Colin Kuskie
75f159f71b
A whole batch of Http test, and a pseudo Request test module to help.
...
Added accessors to Session/Http.pm, and wrote tests to back them all up.
2006-10-30 18:09:25 +00:00
Colin Kuskie
88ef9a412e
bunch of basic HTTP tests
2006-10-22 02:02:29 +00:00
Colin Kuskie
276a2aa99d
update test to work with getStatusDescription
2006-10-16 16:09:15 +00:00
Colin Kuskie
ca7110249f
Extend Session::Http::getStatus so that is will also return the
...
description when called in list context.
Build tests to verify that behavior, and the default settings
for code and description.
2006-10-15 05:23:32 +00:00