Korrektur

Fehler in der Übermittlung von Facebook Posts korrigiert
This commit is contained in:
Marco Glietsch 2020-11-23 08:43:27 +01:00
parent be26dba3e1
commit 28cc855282
5 changed files with 9 additions and 6 deletions

View File

@ -79,7 +79,6 @@
<div id="files-details" class="tab-pane fade">
<div class="row">
<div class="col-lg-12">
{{ $model->hasFiles }}
@include('inc.upload.fileUpload', [
'id' => $model->id,
])

View File

@ -38,7 +38,9 @@
<div id="ajax-container" class="table-responsive">
</div>
<ul id="paginationBottom" class="pagination-sm pagination btn-group" data-page="{{ $page }}" data-type="{{ $url }}"></ul>
<div class="row">
<ul id="paginationBottom" class="pagination-sm pagination btn-group" data-page="{{ $page }}" data-type="{{ $url }}"></ul>
</div>
@endsection

View File

@ -213,7 +213,7 @@ class FacebookClient
// Should throw `FacebookSDKException` exception on HTTP client error.
// Don't catch to allow it to bubble up.
$rawResponse = $this->httpClientHandler->send($url, $method, $body, $headers, $timeOut);
$rawResponse = $this->httpClientHandler->send($url, $method, $body, $headers, $timeOut);
static::$requestCount++;

View File

@ -104,7 +104,8 @@ class GraphRawResponse
*/
public function setHttpResponseCodeFromHeader($rawResponseHeader)
{
preg_match('|HTTP/\d\.\d\s+(\d+)\s+.*|', $rawResponseHeader, $match);
// preg_match('|HTTP/\d\.\d\s+(\d+)\s+.*|', $rawResponseHeader, $match);
preg_match('|HTTP/\d\s+(\d+)\s+.*|', $rawResponseHeader, $match);
$this->httpResponseCode = (int)$match[1];
}
@ -125,6 +126,7 @@ class GraphRawResponse
$rawHeader = array_pop($headerCollection);
$headerComponents = explode("\n", $rawHeader);
foreach ($headerComponents as $line) {
if (strpos($line, ': ') === false) {
$this->setHttpResponseCodeFromHeader($line);

View File

@ -72,13 +72,13 @@ class FacebookCurlHttpClient implements FacebookHttpClientInterface
if ($curlErrorCode = $this->facebookCurl->errno()) {
throw new FacebookSDKException($this->facebookCurl->error(), $curlErrorCode);
}
// Separate the raw headers from the raw body
list($rawHeaders, $rawBody) = $this->extractResponseHeadersAndBody();
$this->closeConnection();
$response = new GraphRawResponse($rawHeaders, $rawBody);
return new GraphRawResponse($rawHeaders, $rawBody);
return $response;
}
/**