Commits

Toby Inkster committed c485a58

get this to work via CGI on my laptop - yeah, you want to adjust some of those paths

Comments (0)

Files changed (2)

bin/web-paste-simple.psgi

-#!/usr/bin/env plackup
+#!/home/tai/perl5/perlbrew/perls/thr-5.16.0/bin/plackup
 
-use lib 'lib';
+use lib '/home/tai/src/web/web-paste-simple/lib';
 use Web::Paste::Simple;
 Web::Paste::Simple->new->app;

lib/Web/Paste/Simple.pm

 		302,
 		[
 			'Content-Type' => 'text/plain',
-			'Location'     => $req->base . $id,
+			'Location'     => $req->base . "/$id",
 		],
 		"Yay!",
 	);