Skip to content

Commit

Permalink
fix for post
Browse files Browse the repository at this point in the history
  • Loading branch information
glamp committed May 20, 2016
1 parent 4dbac4b commit e122762
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/yhatR.R
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ yhat.post <- function(endpoint, query=c(), data, silent = TRUE, bulk = FALSE) {
jsonlite::stream_out(data, con = out)
close(out)
} else {
data.json <- jsonlite::toJSON(data)
data.json <- rjson::toJSON(data)
}
httr::POST(url, body = data.json,
config = c(
Expand Down

0 comments on commit e122762

Please sign in to comment.