Created
August 29, 2017 23:24
-
-
Save inxilpro/fd39827c99ff9003f74ea581b6c95a60 to your computer and use it in GitHub Desktop.
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
| <?php | |
| class ConvertLineEndingsToCRLF | |
| { | |
| public function handle($request, Closure $next) | |
| { | |
| $response = $next($request); | |
| return $response->setContent( | |
| str_replace("\n", "\r\n", $response->getContent()) | |
| ); | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment