Skip to content

Commit

Permalink
fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
wangjinxi committed Jul 30, 2019
1 parent 848a57f commit 410da01
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/DubboParser.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,11 @@ class DubboParser
public function getData($data)
{
$decoder = new Decoder;
$decoder->feed($this->removeHeaderForDubbo($data));
$body = $this->removeHeaderForDubbo($data);
if($body === ''){
return null;
}
$decoder->feed($body);
return $decoder->finalize();
}

Expand Down

0 comments on commit 410da01

Please sign in to comment.