Open-source event management and ticket selling platform — perfect for concerts, conferences, and everything in between 🎟️ If you find this project helpful, please consider giving us a star ⭐️
PHP attendize-alternativedoor-managementevent-check-inevent-managementevent-registrationevent-ticketingeventbrite-alternativeeventslaravelopen-sourcephpreactself-hostedsell-ticketssell-tickets-onlineticket-sellingticketing-systemtickettailor-alternativetito-alternative
<?php
namespace HiEvents\Http\Middleware;
use Closure;
use Illuminate\Http\Request;
use Symfony\Component\HttpFoundation\BinaryFileResponse;
use Symfony\Component\HttpFoundation\StreamedResponse;
class VaporBinaryResponseMiddleware
{
public function handle(Request $request, Closure $next): mixed
{
$response = $next($request);
if ($response instanceof BinaryFileResponse || $response instanceof StreamedResponse) {
$response->headers->set('X-Vapor-Base64-Encode', 'True');
}
return $response;
}
}