Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
open-source
MetaGer
Commits
fe83a72e
Commit
fe83a72e
authored
Jan 24, 2020
by
Dominik Hebeler
Browse files
Merge branch 'development' of
https://gitlab.metager.de/open-source/MetaGer
into development
parents
175dfe7a
d2001374
Changes
2
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
app/Console/Commands/RequestFetcher.php
View file @
fe83a72e
...
...
@@ -164,7 +164,7 @@ class RequestFetcher extends Command
curl_setopt
(
$ch
,
CURLOPT_USERPWD
,
$job
[
"username"
]
.
":"
.
$job
[
"password"
]);
}
if
(
!
empty
(
$job
[
"headers"
]))
{
if
(
!
empty
(
$job
[
"headers"
])
&&
sizeof
(
$job
[
"headers"
])
>
0
)
{
$headers
=
[];
foreach
(
$job
[
"headers"
]
as
$key
=>
$value
)
{
$headers
[]
=
$key
.
":"
.
$value
;
...
...
app/Models/Searchengine.php
View file @
fe83a72e
...
...
@@ -58,11 +58,14 @@ abstract class Searchengine
$this
->
password
=
$this
->
engine
->
{
"http-auth-credentials"
}
->
password
;
}
if
(
$this
->
engine
->
{
"request-header"
})
{
if
(
!
empty
(
$this
->
engine
->
{
"request-header"
})
)
{
$this
->
headers
=
[];
foreach
(
$this
->
header
s
as
$key
=>
$value
)
{
foreach
(
$this
->
engine
->
{
"request-
header
"
}
as
$key
=>
$value
)
{
$this
->
headers
[
$key
]
=
$value
;
}
if
(
sizeof
(
$this
->
headers
)
==
0
)
{
$this
->
headers
=
null
;
}
}
# Suchstring generieren
...
...
Write
Preview
Markdown
is supported
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