Skip to content

Commit

Permalink
Decode URL and use right R object
Browse files Browse the repository at this point in the history
  • Loading branch information
rdpeng committed Oct 11, 2019
1 parent 15a3bf5 commit f47bce5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ozone_server.R
Expand Up @@ -38,7 +38,8 @@ ozone_predict <- function(temp) {
#* @param temp The temperature input
#* @get /ozone_v
ozone_vpredict <- function(temp) {
temp <- strsplit(x, ",", fixed = TRUE)[[1]]
temp <- URLdecode(temp)
temp <- strsplit(temp, ",", fixed = TRUE)[[1]]

## Check input type
temp <- as.numeric(temp)
Expand Down

0 comments on commit f47bce5

Please sign in to comment.