Skip to content

Commit

Permalink
minor fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
killua-eu committed Jan 25, 2024
1 parent a3640a0 commit 0ce09c1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
10 changes: 4 additions & 6 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@
"ext-mysqli": "*",
"ext-readline": "*",
"ext-soap": "*",
"ext-sodium": "*",
"ext-xml": "*",
"facile-it/php-openid-client": "dev-master",
"foxy/foxy": "^v1.3",
"geocoder-php/geoip2-provider": "^4",
"guzzlehttp/psr7": "^2",
"http-interop/http-factory-guzzle": "^1",
Expand All @@ -44,17 +44,17 @@
"thingengineer/mysqli-database-class": "dev-master#42116651a88b57b03fd967bc57dd38f5094565d9",
"voku/anti-xss": "^4",
"zeuxisoo/slim-whoops": "^0.7",
"symfony/config": "^5",
"selective/transformer": "^1",
"casbin/database-adapter": "^1",
"ramsey/uuid": "^4",
"vaizard/glued-lib": "dev-main",
"grasmash/yaml-expander": "^3",
"vlucas/phpdotenv": "^5",
"keiko/uuid-shortener": "^0.6.1",
"keiko/uuid-shortener": "^1",
"shuchkin/simplexlsxgen": "^1.2",
"youthweb/urllinker": "^1.4",
"galbar/jsonpath": "^2.1",
"ext-sodium": "*"
"galbar/jsonpath": "^2.1"
},
"suggest": {
"ext-xdebug": "For dev only"
Expand Down Expand Up @@ -111,7 +111,6 @@
"post-update-cmd": [
"composer configure || echo \"[FAIL] Failed to configure glued. Please make sure all env variables are set. Rerun composer configure.\"",
"composer migrate",
"patch -s --reject-file=/dev/null -p1 vendor/monolog/monolog/src/Monolog/Logger.php < vendor/vaizard/glued-lib/src/Patches/Logger.patch",
"echo \"Run 'composer nginx' manually to pick restart this microservice\""
],
"settings": [
Expand All @@ -122,7 +121,6 @@
"config": {
"allow-plugins": {
"ergebnis/composer-normalize": true,
"foxy/foxy": true,
"php-http/discovery": true
}
}
Expand Down
2 changes: 1 addition & 1 deletion glued/Controllers/ServiceController.php
Original file line number Diff line number Diff line change
Expand Up @@ -886,7 +886,7 @@ public function links_r1(Request $request, Response $response, array $args = [])
$mime = mime_content_type($file);
$response = $response
->withHeader('Content-Type', $mime)
->withHeader('Content-Disposition', "attachment;filename=\"{$res['obj']}.{$mime}\"")
->withHeader('Content-Disposition', "inline;filename=\"{$res['obj']}.{$mime}\"")
->withHeader('Content-Length', filesize($file));
$fileStream = fopen($file, 'rb');
$stream = (new Psr17Factory())->createStreamFromResource($fileStream);
Expand Down

0 comments on commit 0ce09c1

Please sign in to comment.