[ https://issues.apache.org/jira/browse/GROOVY-7425?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14545118#comment-14545118 ]
ASF GitHub Bot commented on GROOVY-7425: ---------------------------------------- GitHub user eginez opened a pull request: https://github.com/apache/incubator-groovy/pull/16 GROOVY-7425: Adding 'getBytes(Map parameters)' method to the URL class Hi all, new contributor to groovy.lang from https://issues.apache.org/jira/browse/GROOVY-7425 Let me know if there is anything that needs to be changed You can merge this pull request into a Git repository by running: $ git pull https://github.com/eginez/incubator-groovy master Alternatively you can review and apply these changes as the patch at: https://github.com/apache/incubator-groovy/pull/16.patch To close this pull request, make a commit to your master/trunk branch with (at least) the following in the commit message: This closes #16 ---- commit 2d93a1f7547ff3caf43b18325345493e85ce71a6 Author: Esteban <egi...@gmail.com> Date: 2015-05-15T07:34:46Z GROOVY-7425: Adding 'getBytes(Map parameters)' method to the URL class ---- > Add 'getBytes(Map parameters)' method to the URL class > ------------------------------------------------------ > > Key: GROOVY-7425 > URL: https://issues.apache.org/jira/browse/GROOVY-7425 > Project: Groovy > Issue Type: Improvement > Components: groovy-jdk > Reporter: Michael Fairfield > Assignee: Guillaume Laforge > > The URL class has a {{[getText(Map > parameters)|http://docs.groovy-lang.org/latest/html/groovy-jdk/java/net/URL.html#getText(java.util.Map)]}} > method but no {{getBytes(Map parameters)}}. > So currently we can't set the user agent and other parameters when > downloading files with the {{getBytes}} method. -- This message was sent by Atlassian JIRA (v6.3.4#6332)