nepda / youtrack-client

A PHP client library for the popular YouTrack bugtracker from jetBrains.
BSD 3-Clause "New" or "Revised" License
25 stars 32 forks source link

getWorkItems not returning valid object #43

Closed the-JJ closed 6 years ago

the-JJ commented 6 years ago

Connection::getWorkItems() fails because YouTrack by default returns a JSON response instead of XML response for timetracking/workitem endpoint.

Can be fixed by sending Accept: application/xml request header

nepda commented 6 years ago

Thank you!