Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove a warning when postBody is not set #26

Closed
GoogleCodeExporter opened this issue Mar 21, 2015 · 1 comment
Closed

Remove a warning when postBody is not set #26

GoogleCodeExporter opened this issue Mar 21, 2015 · 1 comment

Comments

@GoogleCodeExporter
Copy link

Index: src/osapi/io/osapiIO.php
===================================================================
--- src/osapi/io/osapiIO.php    (revision 88)
+++ src/osapi/io/osapiIO.php    (working copy)
@@ -106,6 +106,8 @@
     // force the expected input- and output values to be json encoded
     if ($postBody) {
       $headers = array("Content-Type: application/json");
+    } else {
+           $headers = array();
     }
     return $httpProvider->send($url, $method, $postBody, $headers);
   }

Original issue reported on code.google.com by rovagn...@gmail.com on 18 Mar 2009 at 1:09

@GoogleCodeExporter
Copy link
Author

Shouldn't be an issue any more now that the curl provider checks for an array.

Original comment by api.kurrik%google.com@gtempaccount.com on 25 Mar 2009 at 12:45

  • Changed state: Fixed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant