]> git.treefish.org Git - fex.git/blobdiff - lib/dop
Original release 20150729
[fex.git] / lib / dop
diff --git a/lib/dop b/lib/dop
index d8166247c3f922e5256debb874e649aa21b97a63..9c428a52bd688da30b68d8b1316d97217cf0c538 100755 (executable)
--- a/lib/dop
+++ b/lib/dop
@@ -46,12 +46,10 @@ sub dop {
     $doc = "$path/$link";
     $doc =~ s:/+:/:g;
     $doc =~ s:^/::;
-    $host = $ENV{HTTP_HOST} || $hostname;
     nvt_print(
-      "HTTP/1.1 301 Moved Permanently",
-      "Location: $ENV{PROTO}://$host/$doc",
+      "HTTP/1.1 302 Found",
+      "Location: /$doc",
       "Content-Length: 0",
-      "Connection: close",
       ""
     );
     &reexec;