Skip to content

Commit

Permalink
Merge pull request #9 from dmftaras/hotfix-bulk-records-create
Browse files Browse the repository at this point in the history
Fix records bulk insert
  • Loading branch information
F21 committed Jun 6, 2019
2 parents 166b8ea + 8978316 commit d55a186
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions DNSMadeEasy/driver/Response.php
Expand Up @@ -197,6 +197,12 @@ private function parseMessage($message)
{
assert(is_string($message));

/**
* when you do bulk records insert DnsMadeEasy adds "HTTP/1.1 100 Continue\n\n"
* in front of other headers, which breaks everything else
**/
$message = trim(preg_replace('/^HTTP\/1.1 100 Continue[\n\r]/', '', $message));

$barrier = "\r\n\r\n";
$border = strpos($message, $barrier);

Expand Down

0 comments on commit d55a186

Please sign in to comment.