Skip to content
Prev 34224 / 63424 Next

Problems connecting to httpd help server with some browsers

Simon Urbanek wrote:
[...]
Konqueror didn't like the extra newline in the Location header:

Index: src/library/tools/R/dynamicHelp.R
===================================================================
--- src/library/tools/R/dynamicHelp.R   (revision 49890)
+++ src/library/tools/R/dynamicHelp.R   (working copy)
@@ -172,7 +172,7 @@
             return(list(payload = paste('Redirect to <a href="', file, 
'">"',
                          basename(file), '"</a>', sep=''),
                         "content-type" = 'text/html',
-                       header = paste('Location: ', file, '\n', sep=''),
+                       header = paste('Location: ', file, sep=''),
                         "status code" = 302L)) # temporary redirect
         } else if (length(file) > 1L) {
              paths <- dirname(dirname(file))


Jeff