=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/mandoc/cgi.c,v retrieving revision 1.17 retrieving revision 1.18 diff -u -r1.17 -r1.18 --- src/usr.bin/mandoc/cgi.c 2014/07/19 13:15:07 1.17 +++ src/usr.bin/mandoc/cgi.c 2014/07/21 15:44:22 1.18 @@ -1,4 +1,4 @@ -/* $Id: cgi.c,v 1.17 2014/07/19 13:15:07 schwarze Exp $ */ +/* $Id: cgi.c,v 1.18 2014/07/21 15:44:22 schwarze Exp $ */ /* * Copyright (c) 2011, 2012 Kristaps Dzonsons * Copyright (c) 2014 Ingo Schwarze @@ -560,8 +560,8 @@ * without any delay. */ printf("Status: 303 See Other\r\n"); - printf("Location: %s/%s/%s?", - scriptname, req->q.manpath, r[0].file); + printf("Location: http://%s%s/%s/%s?", + HTTP_HOST, scriptname, req->q.manpath, r[0].file); http_printquery(req); printf("\r\n" "Content-Type: text/html; charset=utf-8\r\n"