diff --git a/conf/nginx.conf b/conf/nginx.conf index 1d06c71..c7ddbcc 100644 --- a/conf/nginx.conf +++ b/conf/nginx.conf @@ -23,7 +23,7 @@ http { # redirect requests ending in a forward slash location ~ ^/(.+)/$ { - return 302 /$1; + return 301 /$1; } location /css { diff --git a/spec/routes_spec.moon b/spec/routes_spec.moon index 58aa1e1..9c9e21f 100644 --- a/spec/routes_spec.moon +++ b/spec/routes_spec.moon @@ -48,3 +48,17 @@ describe "http://miti.sh/index.html", -> assert.same request\statusCode!, 200 assert.same request\statusMessage!, "OK" assert.same request\body!\match("