File: not-modified.t

package info (click to toggle)
libmojolicious-plugin-cgi-perl 0.36-1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 208 kB
  • ctags: 17
  • sloc: perl: 300; makefile: 2
file content (9 lines) | stat: -rw-r--r-- 262 bytes parent folder | download
1
2
3
4
5
6
7
8
9
use t::Helper;

use Mojolicious::Lite;
plugin CGI => ['/not-modified' => cgi_script('not-modified.pl')];

Test::Mojo->new->get_ok('/not-modified' => {'If-None-Match' => 'ABC'})->status_is(304)
  ->header_is('X-Test' => 'if-none-match seen: ABC');

done_testing;