- Notifications
You must be signed in to change notification settings - Fork 305
Closed
Labels
Description
The proxy is not passing along the Accept: header to the original server, and not returning the response's Content-Type: headers.
To test
Melvin's server correctly returns 'text/turtle' if requested directly:
curl -s http://melvincarvalho.com/#me -H 'Accept: text/turtle' -v | grep "Content-Type"< HTTP/1.1 200 OK < Access-Control-Allow-Origin :*< Content-Length: 7471 < Content-Type: text/turtle < @prefix dcterms: <http://purl.org/dc/terms/>.However, using LDNode's proxy, both the 'Accept:' request header and 'Content-Type' response headers are dropped:
curl "https://localhost:8443/proxy?uri=http%3A%2F%2Fmelvincarvalho.com%2F%23me" \ -H 'Accept: text/turtle' -vk < HTTP/1.1 200 OK < X-Powered-By: ldnode < Vary: Origin < Access-Control-Allow-Credentials: true< Access-Control-Expose-Headers: User, Location, Link, Vary, Last-Modified, Content-Length < Date: Wed, 17 Feb 2016 18:41:27 GMT < Connection: keep-alive < Transfer-Encoding: chunked <<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.0//EN""http://www.w3.org/MarkUp/DTD/xhtml-rdfa-1.dtd">