rstudio / plumber

Turn your R code into a web API.
https://www.rplumber.io
Other
1.39k stars 256 forks source link

IE10 IE11 - API with root definition deployed to Connect asks to download JSON file #177

Closed joncfoo closed 7 years ago

joncfoo commented 7 years ago
  1. Deploy the following plumber.R file to Connect:
#* @get /
root <- function(){
  "hello world!"
}

#* @get /mean
normalMean <- function(samples=10){
  data <- rnorm(samples)
  mean(data)
}
  1. Open the deployed API in Connect
  2. Note that IE10 & IE11 ask to download a JSON file instead of displaying ["hello world!"]

IE Edge, Chrome, and Firefox correctly display the root content: ["hello world!"]

trestletech commented 7 years ago

All the results I can find on this front involve hacking the registry. It doesn't seem like there's a consistent way to tell older IEs that they should display rather than download JSON.

Closing as wontfix unless somebody else knows better.