w2v-server: prepare for reverse proxy access
diff --git a/templates/index.html.ep b/templates/index.html.ep
index dac652d..57ee2ab 100644
--- a/templates/index.html.ep
+++ b/templates/index.html.ep
@@ -296,7 +296,7 @@
</script>
</head>
<body>
- <form action="<%=url_for('/')->to_abs%>" method="GET">
+ <form method="GET">
word(s):
<input type="text" name="word" size="20" value="<%= $word %>" title="When looking for multiple words use spaces as separators to search around the average vector and | as separator to get the neighbours for each word.">
% if($mergedEnd > 0) {
diff --git a/w2v-server.pl b/w2v-server.pl
index 6ed83a8..a71ee6e 100755
--- a/w2v-server.pl
+++ b/w2v-server.pl
@@ -9,6 +9,7 @@
use Getopt::Std;
use Mojo::Server::Daemon;
plugin 'Log::Access';
+plugin "RequestBase";
our $opt_i = 0; # latin1-input?
our $opt_l = undef;