Skip to content

Commit

Permalink
Merge pull request #29 from collegevine/hardcode-content-type
Browse files Browse the repository at this point in the history
Hardcode content type for POST requests
  • Loading branch information
tonyelhabr authored Jan 4, 2024
2 parents f6ba595 + 939fcea commit e39077f
Show file tree
Hide file tree
Showing 3 changed files with 81 additions and 87 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Package: lightMLFlow
Title: A Lightweight, Opinionated R Wrapper for the 'MLFlow' REST API
Version: 0.7.0
Version: 0.7.1
Authors@R: c(
person("Matt", "Kaye", , "[email protected]", role = c("aut", "cre")),
person("Tony", "ElHabr", , "[email protected]", role = "aut")
Expand Down
1 change: 1 addition & 0 deletions R/rest.R
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ get_rest_config <- function(host_creds) {
}

headers$`User-Agent` <- paste("mlflow-r-client", packageVersion("lightMLFlow"), sep = "/")
headers$`Content-Type` <- "application/json"
is_insecure <- as.logical(host_creds$insecure)

list(
Expand Down
Loading

0 comments on commit e39077f

Please sign in to comment.