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

Some headers are overwritten #28

Open
subnetmarco opened this issue May 15, 2015 · 1 comment
Open

Some headers are overwritten #28

subnetmarco opened this issue May 15, 2015 · 1 comment
Assignees
Labels
Milestone

Comments

@subnetmarco
Copy link
Member

Some headers are being overwritten, like X-Forwarded-Proto. The following example should return X-Forwarded-Proto: Test in the response, but instead it returns another value.

$ curl -H "X-Forwarded-Proto: Test" http://mockbin.com/request
{
  "startedDateTime": "2015-05-15T01:36:11.412Z",
  "clientIPAddress": "40.140.33.170",
  "method": "GET",
  "url": "http://mockbin.com/request",
  "httpVersion": "HTTP/1.1",
  "cookies": {},
  "headers": {
    "host": "mockbin.com",
    "connection": "close",
    "accept-encoding": "gzip",
    "x-forwarded-for": "40.140.33.170, 199.27.133.251",
    "cf-ray": "1e6b1c4668770293-SJC",
    "x-forwarded-proto": "http",
    "connect-via-ip": "104.24.103.220",
    "connect-via-host": "mockbin.com",
    "cf-visitor": "{\"scheme\":\"http\"}",
    "user-agent": "curl/7.37.1",
    "accept": "*/*",
    "cf-connecting-ip": "40.140.33.170",
    "x-request-id": "858a9c19-8e6d-4c5a-9d6b-3c23dad5ce2b",
    "x-forwarded-port": "80",
    "via": "1.1 vegur",
    "connect-time": "4",
    "x-request-start": "1431653771403",
    "total-route-time": "0"
  },
  "queryString": {},
  "postData": {
    "mimeType": "application/octet-stream",
    "text": "",
    "params": []
  },
  "headersSize": 530,
  "bodySize": 0
}
@ahmadnassri
Copy link
Contributor

right, this is due to Mockbin sitting behind cloudflare ... which over-writes with its own headers ... i'm not happy with the cloudflare caching layer, and actually plan on moving mockbin out ... might do it this weekend.

@ahmadnassri ahmadnassri modified the milestone: 1.6.0 Jun 3, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants