NEWARK, N.J. (CBSNewYork/AP) — New York Giants defensive end Jason Pierre-Paul and ESPN have settled a lawsuit over the network’s disclosure of his medical records from a 2015 fireworks accident.

ESPN announced the settlement on Friday, saying it believes that the network’s reporting about the injury was newsworthy and journalistically appropriate.

Giants spokesman Pat Hanlon declined comment.

The network said despite their different points of view, the parties agreed to resolve their dispute amicably.

The case was set for trial in August after a Miami federal judge rejected ESPN’s motion to dismiss the lawsuit.

Pierre-Paul was hospitalized in Miami after the July Fourth accident, which caused serious injuries to his right hand. The lawsuit claimed ESPN and a network reporter violated his privacy and Florida medical confidentiality laws by posting the records on social media.

The network argued that the records merely bolstered a news report.

(TM and © Copyright 2017 CBS Radio Inc. and its relevant subsidiaries. CBS RADIO and EYE Logo TM and Copyright 2017 CBS Broadcasting Inc. Used under license. All Rights Reserved. This material may not be published, broadcast, rewritten, or redistributed. The Associated Press contributed to this report.)