File tree Expand file tree Collapse file tree 2 files changed +11
-3
lines changed
views/subscription_templates Expand file tree Collapse file tree 2 files changed +11
-3
lines changed Original file line number Diff line number Diff line change @@ -137,10 +137,10 @@ def prepare_payload
137
137
method : "POST" ,
138
138
json : {
139
139
entity : "#{ @entity_url } /${id}?type=${type}" ,
140
- subject : @subscription_template . subject ,
141
- description : @subscription_template . description ,
140
+ subject : @subscription_template . subject . chomp ,
141
+ description : @subscription_template . description . chomp ,
142
142
attachments : @subscription_template . attachments ,
143
- notes : @subscription_template . notes ,
143
+ notes : @subscription_template . notes . chomp ,
144
144
geometry : @subscription_template . geometry
145
145
}
146
146
}
Original file line number Diff line number Diff line change 1
1
// Build the request headers
2
2
var headers = new Headers ( ) ;
3
3
4
+ < % if @subscription_template . fiware_service . present ? % >
5
+ headers . append ( 'Fiware-Service' , '<%= @subscription_template.fiware_service %>' ) ;
6
+ < % end % >
7
+
8
+ < % if @subscription_template . fiware_servicepath . present ? % >
9
+ headers.append('Fiware-ServicePath', '< %= @subscription_template . fiware_servicepath % > ');
10
+ < % end % >
11
+
4
12
var authToken = document.getElementById('subscription_auth_token').value;
5
13
if (authToken) {
6
14
headers . append ( 'Authorization' , 'Bearer ' + authToken ) ;
You can’t perform that action at this time.
0 commit comments