Skip to content
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

sending a http header with EasyRDF_Graph->load() #203

Open
jeffreycwitt opened this issue Sep 1, 2014 · 0 comments
Open

sending a http header with EasyRDF_Graph->load() #203

jeffreycwitt opened this issue Sep 1, 2014 · 0 comments

Comments

@jeffreycwitt
Copy link

Please see my comment on the google discussion board. I was told that this was a bug.
https://groups.google.com/d/msg/easyrdf/vaSeIGGXt5A/yZXxG7UjwEAJ

I fixed this problem by harding coding, by modifying line 285 in Graph.php as follows.

    //$client->setHeaders('Accept', EasyRdf_Format::getHttpAcceptHeader());
    $client->setHeaders('Accept', 'application/json');

Now, my request works. So there is something going on in the .getHttpAcceptHeader() method that is not allowing the 'application/json' request. --- at least in my use case.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant