Skip to content

Commit

Permalink
fix #70
Browse files Browse the repository at this point in the history
  • Loading branch information
mirkoperillo committed Sep 29, 2016
1 parent a7624f1 commit f054ee4
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion content/js/application.js
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,16 @@ RESTEasy.ApplicationController = Ember.Controller.extend({
assignRequestToState: function(item) {
this.set('method', item.method);
this.set('url', item.url);
this.set('requestHeaders', item.requestHeaders);
// transform headers in Ember Objects
var headers = [];
item.requestHeaders.forEach(function(header){
headers.push(Ember.Object.create({
editing: false,
name: header.name,
value: header.value
}));
});
this.set('requestHeaders', headers);
this.set('dataMode', item.dataMode);
this.set('formType', item.formType);
this.set('formData', item.formData);
Expand Down

0 comments on commit f054ee4

Please sign in to comment.