Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

File.R calls the wrong "redirect" if PATH_INFO has no "/" (slash) #39

Open
greg-minshall opened this issue Nov 7, 2020 · 1 comment

Comments

@greg-minshall
Copy link

it calls unadorned "redirect", which takes only one argument. i suspect it should be calling "res$redirect", which i think would allow for the 301 code as a second argument.

          return(redirect(paste(env[["SCRIPT_NAME"]], env[["PATH_INFO"]], "/", sep=""), status=301))

cheers.

@greg-minshall
Copy link
Author

ah. a typical error message:

Error in redirect(paste(env[["SCRIPT_NAME"]], env[["PATH_INFO"]], "/",  : 
  unused argument (status = 301)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant