-
-
Notifications
You must be signed in to change notification settings - Fork 594
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to retrieve pull request diff #93
Comments
The library provides you github api v3, you can check actual documentation here http://developer.github.com/v3/pulls/#get-a-single-pull-request I just checked code snippet you have provided and the output is exactly the same as mentioned in v3 docs. Can't really help on that because github no longer supports older versions AFAIK. |
GitHub API v3 also supports custom media types for pull requests. Please try running the following:
|
@morozov you have to specify header key instead of plain text: $client->setHeaders(array(
'Accept' => sprintf('application/vnd.github.%s.diff', $client->getOption('api_version'))
)); |
👍 Thanks! |
The following code snippet is supposed to produce the pull reques diff. It used to work a while ago but now it doesnt.
The point is that here default
Accept
header is appepended with custom but not overridden, thus both of them are sent.Default
User-Agent
andAccept
headers should be sent only if other values are not specified.The text was updated successfully, but these errors were encountered: