You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@guacamole.apache.org by mike-jumper <gi...@git.apache.org> on 2017/11/17 17:43:23 UTC

[GitHub] incubator-guacamole-client pull request #210: GUACAMOLE-437: Allow to send c...

Github user mike-jumper commented on a diff in the pull request:

    https://github.com/apache/incubator-guacamole-client/pull/210#discussion_r151746141
  
    --- Diff: guacamole-common-js/src/main/webapp/modules/Tunnel.js ---
    @@ -214,6 +219,29 @@ Guacamole.HTTPTunnel = function(tunnelURL, crossDomain) {
          */
         var receive_timeout = null;
     
    +    /**
    +     * Additional headers to be sent in tunnel requests. This dictionary can be
    +     * populated with key/value header pairs to pass information such as authentication
    +     * tokens, etc.
    +     *
    +     * @private
    +     */
    +    var extraHeaders = extraTunnelHeaders || {}
    +
    +    /**
    +     * Adds the configured additional headerss to the given request.
    +     *
    --- End diff --
    
    `request` is not an optional parameter of this function, and thus must not be within brackets here.


---