Skip to content

Instantly share code, notes, and snippets.

@sanglt
Last active October 17, 2016 06:21
Show Gist options
  • Select an option

  • Save sanglt/ae2994d62e7625a5522ad342d3331103 to your computer and use it in GitHub Desktop.

Select an option

Save sanglt/ae2994d62e7625a5522ad342d3331103 to your computer and use it in GitHub Desktop.
restler.patch
diff --git a/vendor/luracast/restler/vendor/Luracast/Restler/Restler.php b/vendor/luracast/restler/vendor/Luracast/Restler/Restler.php
index 0cef46a..ea6592e 100644
--- a/vendor/luracast/restler/vendor/Luracast/Restler/Restler.php
+++ b/vendor/luracast/restler/vendor/Luracast/Restler/Restler.php
@@ -1166,13 +1166,9 @@ class Restler extends EventDispatcher
: 'Unknown';
@header('WWW-Authenticate: ' . $authString, false);
}
+ echo $this->responseData;
$this->dispatch('complete');
- if (Defaults::$returnResponse) {
- return $this->responseData;
- } else {
- echo $this->responseData;
- exit;
- }
+ exit;
}
protected function message(Exception $exception)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment