Skip to content
Browse files

Fix for running unit tests on nginx

  • Loading branch information...
1 parent 4a1a147 commit a4d61adc6eeb43a02fe4cdcf14cdde6f31ad24a0 @sloonz sloonz committed
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/limonade/tests.php
View
2 lib/limonade/tests.php
@@ -334,7 +334,7 @@ function test_request($url, $method="GET", $include_header=false, $post_data=arr
curl_setopt($curl, CURLOPT_HTTPHEADER, $http_header);
curl_setopt($curl, CURLOPT_CUSTOMREQUEST, $method);
curl_setopt($curl, CURLOPT_FOLLOWLOCATION, 1);
- if($method == 'POST')
+ if($method == 'POST' || $method == 'PUT')
{
curl_setopt($curl, CURLOPT_POST, 1);
curl_setopt($curl, CURLOPT_POSTFIELDS, $post_data);

0 comments on commit a4d61ad

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