Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Ablota
Store
Server
Commits
ad296316
Verified
Commit
ad296316
authored
Nov 05, 2020
by
FabioWidmer
Browse files
Add User-Agent header to proxy
parent
b68a1ffc
Changes
2
Hide whitespace changes
Inline
Side-by-side
app/Http/Controllers/V1/ProxyController.php
View file @
ad296316
...
@@ -52,6 +52,9 @@ class ProxyController extends Controller {
...
@@ -52,6 +52,9 @@ class ProxyController extends Controller {
[
[
RequestOptions
::
READ_TIMEOUT
=>
90
,
RequestOptions
::
READ_TIMEOUT
=>
90
,
RequestOptions
::
TIMEOUT
=>
90
,
RequestOptions
::
TIMEOUT
=>
90
,
RequestOptions
::
HEADERS
=>
[
'User-Agent'
=>
'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/86.0.4240.75 Safari/537.36'
,
],
]
]
);
);
...
...
composer.lock
View file @
ad296316
...
@@ -4,7 +4,7 @@
...
@@ -4,7 +4,7 @@
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
"This file is @generated automatically"
"This file is @generated automatically"
],
],
"content-hash": "
d345fd8f76dd77fc3b92a0b264f45724
",
"content-hash": "
e69b227f1ae917de05f7ce379dd5baed
",
"packages": [
"packages": [
{
{
"name": "asm89/stack-cors",
"name": "asm89/stack-cors",
...
@@ -833,16 +833,16 @@
...
@@ -833,16 +833,16 @@
},
},
{
{
"name": "laravel/framework",
"name": "laravel/framework",
"version": "v8.1
2.3
",
"version": "v8.1
3.0
",
"source": {
"source": {
"type": "git",
"type": "git",
"url": "https://github.com/laravel/framework.git",
"url": "https://github.com/laravel/framework.git",
"reference": "
6707480c5f0db7aa07537f9ad93255b64b65b85e
"
"reference": "
37a0abd4f3dbc51e2256296b45f8be72c8fe2196
"
},
},
"dist": {
"dist": {
"type": "zip",
"type": "zip",
"url": "https://api.github.com/repos/laravel/framework/zipball/
6707480c5f0db7aa07537f9ad93255b64b65b85e
",
"url": "https://api.github.com/repos/laravel/framework/zipball/
37a0abd4f3dbc51e2256296b45f8be72c8fe2196
",
"reference": "
6707480c5f0db7aa07537f9ad93255b64b65b85e
",
"reference": "
37a0abd4f3dbc51e2256296b45f8be72c8fe2196
",
"shasum": ""
"shasum": ""
},
},
"require": {
"require": {
...
@@ -992,20 +992,20 @@
...
@@ -992,20 +992,20 @@
"framework",
"framework",
"laravel"
"laravel"
],
],
"time": "2020-1
0-29T22:01:2
9+00:00"
"time": "2020-1
1-03T14:13:1
9+00:00"
},
},
{
{
"name": "laravel/sanctum",
"name": "laravel/sanctum",
"version": "v2.
7
.0",
"version": "v2.
8
.0",
"source": {
"source": {
"type": "git",
"type": "git",
"url": "https://github.com/laravel/sanctum.git",
"url": "https://github.com/laravel/sanctum.git",
"reference": "
43f05df591e50995635
20
a
b0
18cca4ac383681cd
"
"reference": "
b64
20b0
d4beace16f6e8248b221fd0b0deee47a1
"
},
},
"dist": {
"dist": {
"type": "zip",
"type": "zip",
"url": "https://api.github.com/repos/laravel/sanctum/zipball/
43f05df591e50995635
20
a
b0
18cca4ac383681cd
",
"url": "https://api.github.com/repos/laravel/sanctum/zipball/
b64
20b0
d4beace16f6e8248b221fd0b0deee47a1
",
"reference": "
43f05df591e50995635
20
a
b0
18cca4ac383681cd
",
"reference": "
b64
20b0
d4beace16f6e8248b221fd0b0deee47a1
",
"shasum": ""
"shasum": ""
},
},
"require": {
"require": {
...
@@ -1013,12 +1013,12 @@
...
@@ -1013,12 +1013,12 @@
"illuminate/contracts": "^6.9|^7.0|^8.0",
"illuminate/contracts": "^6.9|^7.0|^8.0",
"illuminate/database": "^6.9|^7.0|^8.0",
"illuminate/database": "^6.9|^7.0|^8.0",
"illuminate/support": "^6.9|^7.0|^8.0",
"illuminate/support": "^6.9|^7.0|^8.0",
"php": "^7.2"
"php": "^7.2
|^8.0
"
},
},
"require-dev": {
"require-dev": {
"mockery/mockery": "^1.0",
"mockery/mockery": "^1.0",
"orchestra/testbench": "^4.0|^5.0|^6.0",
"orchestra/testbench": "^4.0|^5.0|^6.0",
"phpunit/phpunit": "^8.0"
"phpunit/phpunit": "^8.0
|^9.3
"
},
},
"type": "library",
"type": "library",
"extra": {
"extra": {
...
@@ -1052,7 +1052,7 @@
...
@@ -1052,7 +1052,7 @@
"laravel",
"laravel",
"sanctum"
"sanctum"
],
],
"time": "2020-1
0-20T18:37:43
+00:00"
"time": "2020-1
1-03T19:11:54
+00:00"
},
},
{
{
"name": "laravel/tinker",
"name": "laravel/tinker",
...
@@ -6927,7 +6927,8 @@
...
@@ -6927,7 +6927,8 @@
"prefer-lowest": false,
"prefer-lowest": false,
"platform": {
"platform": {
"php": "^7.3|^8.0",
"php": "^7.3|^8.0",
"ext-zip": "*"
"ext-zip": "*",
"ext-json": "*"
},
},
"platform-dev": [],
"platform-dev": [],
"plugin-api-version": "1.1.0"
"plugin-api-version": "1.1.0"
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment