ostreedev / ostree

Operating system and container binary deployment and upgrades
https://ostreedev.github.io/ostree/
Other
1.29k stars 296 forks source link

Set origin http header during pull #1288

Open alexlarsson opened 7 years ago

alexlarsson commented 7 years ago

I wish ostree could set the http origin header to the ref when fetching files as part of a pull. For instance, it could set it to the url of the ref file. This would make it a lot easier to analyze http logs to get download stats for an ostree repo.

mcorb commented 6 years ago

The HTTP Origin header only permits a host with no path. The Referer header would be more suitable for a ref URL:

Origin: <scheme> "://" <hostname> [ ":" <port> ]
Referer: <url>