thrift-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "James E. King III (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (THRIFT-4737) thrift.js does not use customHeaders in jqRequest
Date Mon, 14 Jan 2019 17:15:00 GMT

     [ https://issues.apache.org/jira/browse/THRIFT-4737?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

James E. King III resolved THRIFT-4737.
---------------------------------------
    Resolution: Fixed

> thrift.js does not use customHeaders in jqRequest
> -------------------------------------------------
>
>                 Key: THRIFT-4737
>                 URL: https://issues.apache.org/jira/browse/THRIFT-4737
>             Project: Thrift
>          Issue Type: Bug
>          Components: JavaScript - Library
>    Affects Versions: 0.10.0, 0.11.0, 0.12.0
>            Reporter: Christian Bürckert
>            Assignee: James E. King III
>            Priority: Trivial
>             Fix For: 1.0
>
>          Time Spent: 20m
>  Remaining Estimate: 0h
>
> When using ajax requests via jquery custom headers are not added to the request.
>  
> Adding beforeSend to the jQuery.ajax will solve this Problem.
> {code:java}
>             beforeSend: function (xreq) {
>                 Object.keys(thriftTransport.customHeaders).forEach(function
(prop) {
>                     xreq.setRequestHeader(prop, thriftTransport.customHeaders[prop]);
>                 });
>             }
> {code}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Mime
View raw message