diff --git a/java/meterpreter/meterpreter/src/main/java/com/metasploit/meterpreter/HttpTransport.java b/java/meterpreter/meterpreter/src/main/java/com/metasploit/meterpreter/HttpTransport.java index d1cb8acc..80cb7e05 100644 --- a/java/meterpreter/meterpreter/src/main/java/com/metasploit/meterpreter/HttpTransport.java +++ b/java/meterpreter/meterpreter/src/main/java/com/metasploit/meterpreter/HttpTransport.java @@ -253,7 +253,7 @@ public class HttpTransport extends Transport { try { conn = this.targetUrl.openConnection(); - HttpConnection.addRequestHeaders(conn, userAgent, customHeaders); + HttpConnection.addRequestHeaders(conn, customHeaders, userAgent); if (this.targetUrl.getProtocol().equals("https")) { try {