Title: Proxy dropping 'Accept:' and 'Content-Type:' headers · Issue #251 · nodeSolidServer/node-solid-server · GitHub
Open Graph Title: Proxy dropping 'Accept:' and 'Content-Type:' headers · Issue #251 · nodeSolidServer/node-solid-server
X Title: Proxy dropping 'Accept:' and 'Content-Type:' headers · Issue #251 · nodeSolidServer/node-solid-server
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://melvincarvalh...
Open Graph 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 requeste...
X 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&...
Opengraph URL: https://github.com/nodeSolidServer/node-solid-server/issues/251
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Proxy dropping 'Accept:' and 'Content-Type:' headers","articleBody":"The proxy is not passing along the `Accept:` header to the original server, and not returning the response's `Content-Type:` headers.\n\n**To test**\n\nMelvin's server correctly returns 'text/turtle' if requested directly:\n\n``` bash\ncurl -s http://melvincarvalho.com/#me -H 'Accept: text/turtle' -v | grep \"Content-Type\"\n\n\u003c HTTP/1.1 200 OK\n\u003c Access-Control-Allow-Origin : *\n\u003c Content-Length: 7471\n\u003c Content-Type: text/turtle\n\u003c\n@prefix dcterms: \u003chttp://purl.org/dc/terms/\u003e .\n```\n\nHowever, using LDNode's proxy, both the 'Accept:' request header and 'Content-Type' response headers are dropped:\n\n``` bash\ncurl \"https://localhost:8443/proxy?uri=http%3A%2F%2Fmelvincarvalho.com%2F%23me\" \\\n -H 'Accept: text/turtle' -vk\n\n\u003c HTTP/1.1 200 OK\n\u003c X-Powered-By: ldnode\n\u003c Vary: Origin\n\u003c Access-Control-Allow-Credentials: true\n\u003c Access-Control-Expose-Headers: User, Location, Link, Vary, Last-Modified, Content-Length\n\u003c Date: Wed, 17 Feb 2016 18:41:27 GMT\n\u003c Connection: keep-alive\n\u003c Transfer-Encoding: chunked\n\u003c\n\u003c!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML+RDFa 1.0//EN\" \"http://www.w3.org/MarkUp/DTD/xhtml-rdfa-1.dtd\"\u003e\n```\n","author":{"url":"https://github.com/dmitrizagidulin","@type":"Person","name":"dmitrizagidulin"},"datePublished":"2016-02-17T18:56:27.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/251/node-solid-server/issues/251"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:b3d9f585-fcd8-7ef4-1f7d-bc263ff88050 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | AE30:1625C5:BF089D0:F77AAD7:6976A4BE |
| html-safe-nonce | fd352515eff389ba9c7e81c565afdbffe3adac8d93e701e7e21ff6e1f9b309c5 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBRTMwOjE2MjVDNTpCRjA4OUQwOkY3N0FBRDc6Njk3NkE0QkUiLCJ2aXNpdG9yX2lkIjoiODU2MjExNDQzNzAzMDc4MjE0MiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 978882ae17c0d3fb83ac566be53b0d0e830b5f068cba09c8a2f2fe5770c04036 |
| hovercard-subject-tag | issue:134367342 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/nodeSolidServer/node-solid-server/251/issue_layout |
| twitter:image | https://opengraph.githubassets.com/0b10dcd5a101d5965792e8a079a00332b7f0966b6e571d7b9cc3d0aeed9b145e/nodeSolidServer/node-solid-server/issues/251 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/0b10dcd5a101d5965792e8a079a00332b7f0966b6e571d7b9cc3d0aeed9b145e/nodeSolidServer/node-solid-server/issues/251 |
| og:image:alt | 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 requeste... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | dmitrizagidulin |
| hostname | github.com |
| expected-hostname | github.com |
| None | 032152924a283b83384255d9489e7b93b54ba01da8d380b05ecd3953b3212411 |
| turbo-cache-control | no-preview |
| go-import | github.com/nodeSolidServer/node-solid-server git https://github.com/nodeSolidServer/node-solid-server.git |
| octolytics-dimension-user_id | 104446421 |
| octolytics-dimension-user_login | nodeSolidServer |
| octolytics-dimension-repository_id | 24306004 |
| octolytics-dimension-repository_nwo | nodeSolidServer/node-solid-server |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 24306004 |
| octolytics-dimension-repository_network_root_nwo | nodeSolidServer/node-solid-server |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 5b577f6be6482e336e3c30e8daefa30144947b17 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width