Skip to content

Commit

Permalink
It's query, not params. Closes #66
Browse files Browse the repository at this point in the history
  • Loading branch information
hadley committed Apr 15, 2015
1 parent a61278a commit 8874e27
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions NEWS.md
Expand Up @@ -18,6 +18,8 @@

* `xml_structure()` has been moved to xml2.

* `submit_form()` now works with forms that use GET (#66).

# rvest 0.2.0

## New features
Expand Down
2 changes: 1 addition & 1 deletion R/form.R
Expand Up @@ -267,7 +267,7 @@ submit_form <- function(session, form, submit = NULL, ...) {

# Make request
if (request$method == "GET") {
request_GET(session, url = url, params = request$values, ...)
request_GET(session, url = url, query = request$values, ...)
} else if (request$method == "POST") {
request_POST(session, url = url, body = request$values,
encode = request$encode, ...)
Expand Down

0 comments on commit 8874e27

Please sign in to comment.