Korrektur
Fehler in der Übermittlung von Facebook Posts korrigiert
This commit is contained in:
parent
be26dba3e1
commit
28cc855282
@ -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,
|
||||
])
|
||||
|
||||
@ -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
|
||||
|
||||
|
||||
|
||||
@ -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++;
|
||||
|
||||
|
||||
@ -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);
|
||||
|
||||
@ -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;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Loading…
Reference in New Issue
Block a user