Last active
October 17, 2016 06:21
-
-
Save sanglt/ae2994d62e7625a5522ad342d3331103 to your computer and use it in GitHub Desktop.
restler.patch
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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