Skip to content
Browse files

Fix rubyKey, because it was changing dashes into underscore in whole …

…"headerKey:headerValue" line.

And it was wrong
  • Loading branch information...
1 parent 5e11f1b commit 8fd30d1319de5097e8aafbd5e3ca3d5fd79c6a52 @kuba-kubula kuba-kubula committed Nov 26, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 ruby.html
View
2 ruby.html
@@ -13,7 +13,7 @@
<% end %>
<% if @helpers.isNotEmpty @headers: %>
-headers = {<%= [':'+@helpers.rubyKey header+' => '+@helpers.escape value for header,value of @headers] %>}
+headers = {<%= [':'+@helpers.rubyKey(header)+' => '+@helpers.escape value for header,value of @headers] %>}
<% end %>
response = RestClient.<%= @method.toLowerCase() %> "<%= @apiUrl %><%= @url %>"<% if @body: %>, values<% end %><% if @helpers.isNotEmpty @headers: %>, headers<% end %>

0 comments on commit 8fd30d1

Please sign in to comment.
Something went wrong with that request. Please try again.