diff options
Diffstat (limited to 'test/webrick/webrick.cgi')
-rw-r--r-- | test/webrick/webrick.cgi | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/test/webrick/webrick.cgi b/test/webrick/webrick.cgi index 9edbb13847..73ba729407 100644 --- a/test/webrick/webrick.cgi +++ b/test/webrick/webrick.cgi @@ -16,6 +16,12 @@ class TestApp < WEBrick::CGI res.body = "" res.body << req.request_uri.to_s << "\n" res.body << req.script_name + elsif !req.cookies.empty? + res.body = req.cookies.inject(""){|result, cookie| + result << "%s=%s\n" % [cookie.name, cookie.value] + } + res.cookies << WEBrick::Cookie.new("Customer", "WILE_E_COYOTE") + res.cookies << WEBrick::Cookie.new("Shipping", "FedEx") else res.body = req.script_name end |