MyProfile / myprofile

MyProfile intends to provide a solution for managing the numerous accounts and profiles that users have on the Internet. Its main purpose is to provide a unified user account, or simply 'user profile', which as opposed to current 'silo' profiles, would really be under the user’s control, on a device controlled by the user.
http://myprofile-project.org/
MIT License
43 stars 8 forks source link

404 error when Accept header not set #20

Closed fela closed 12 years ago

fela commented 12 years ago

I was getting 404 errors when trying to read profile cards with RDF.rb, it took me a little to understand why with web browsers it was working correctly instead. I found that the server returns a 404 error with clients not using content negotiation. Shouldn't it use a default fall back?

$ curl -I https://my-profile.eu/people/test/card#me
HTTP/1.1 404 Not Found
Date: Tue, 28 Aug 2012 12:51:36 GMT
Server: Apache/2.2.16 (Debian)
Vary: Accept-Encoding
Content-Type: text/html; charset=iso-8859-1

$ curl -I -H "Accept: application/rdf+xml" https://my-profile.eu/people/test/card#me
HTTP/1.1 303 See Other
Date: Tue, 28 Aug 2012 12:51:20 GMT
Server: Apache/2.2.16 (Debian)
Location: https://my-profile.eu/people/test/foaf.rdf
Vary: Accept-Encoding
Content-Type: text/html; charset=iso-8859-1
deiu commented 12 years ago

Thanks for reporting this. I'll look into it asap.

deiu commented 12 years ago

Fixed in 00cdd88a626e1e489502d8a4c876e048be4aff17 ("develop" branch).