Permalink
Browse files

PHP doesn't need newline split anymore

  • Loading branch information...
1 parent ee2752c commit dec11947336ac49572c2979af00aca1fa3fd779f @kuba-kubula kuba-kubula committed Jan 30, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 php.html
View
2 php.html
@@ -13,7 +13,7 @@
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "<%= @method %>");
<% end %>
<% if @method isnt 'GET' and (@contentType is "text/html" or @contentType is "text/plain"): %>
-$fields = <%= eos %><%= "#{line}\n" for line in @body.split('\n') %>EOT;
+$fields = <%= eos %><%= @body %>EOT;
curl_setopt($ch, CURLOPT_POSTFIELDS, $fields);
<% else if @body and @body.length > 0: %>
curl_setopt($ch, CURLOPT_POSTFIELDS, <%= @helpers.escape @body %>);

0 comments on commit dec1194

Please sign in to comment.