]> gitweb.factorcode.org Git - factor.git/commitdiff
Use path+ in file responder
authorslava <slava@factorcode.org>
Thu, 19 Oct 2006 21:34:38 +0000 (21:34 +0000)
committerslava <slava@factorcode.org>
Thu, 19 Oct 2006 21:34:38 +0000 (21:34 +0000)
contrib/httpd/file-responder.factor

index 8d0dd35561ae2dc12b4d168a15cd2fea4e5c678c..28a57e8506de16bd1d3cb0104709389ebfdf2b63 100644 (file)
@@ -5,7 +5,7 @@ USING: calendar embedded errors html httpd io kernel math namespaces parser
 sequences strings hashtables ;
 
 : serving-path ( filename -- filename )
-    [ "" ] unless* "doc-root" get swap append ;
+    [ "" ] unless* "doc-root" get swap path+ ;
 
 : file-http-date ( filename -- string )
   #! Return the date in HTTP Date format (see RFC 2616).