Skip to content

Commit

Permalink
Content-Length:0 gives error 502 on signhost
Browse files Browse the repository at this point in the history
  • Loading branch information
steffjenl committed Jan 10, 2020
1 parent 7a315ef commit d1b4a78
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions src/SignhostClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -90,11 +90,6 @@ public function performRequest(string $endpoint, string $method, $data = null, $
$headers[] = 'Content-Length: ' . strlen(json_encode($data));
}

// for start transaction, SignHost will require the content-length: 0 header.
if (($method == 'PUT' || $method == 'POST') && empty($data) && empty($filePath)) {
$headers[] = 'Content-Length: 0';
}

// Initialize a cURL session
return $this->performCURLRequest(
$method,
Expand Down

0 comments on commit d1b4a78

Please sign in to comment.