{"action":"opened","issue":{"url":"https://api.github.com/repos/Microsoft/Office-Online-Test-Tools-and-Documentation/issues/47","labels_url":"https://api.github.com/repos/Microsoft/Office-Online-Test-Tools-and-Documentation/issues/47/labels{/name}","comments_url":"https://api.github.com/repos/Microsoft/Office-Online-Test-Tools-and-Documentation/issues/47/comments","events_url":"https://api.github.com/repos/Microsoft/Office-Online-Test-Tools-and-Documentation/issues/47/events","html_url":"https://github.com/Microsoft/Office-Online-Test-Tools-and-Documentation/issues/47","id":82086767,"number":47,"title":"Use correct casing in HTTP headers","user":{"login":"tylerbutler","id":19589,"avatar_url":"https://avatars.githubusercontent.com/u/19589?v=3","gravatar_id":"","url":"https://api.github.com/users/tylerbutler","html_url":"https://github.com/tylerbutler","followers_url":"https://api.github.com/users/tylerbutler/followers","following_url":"https://api.github.com/users/tylerbutler/following{/other_user}","gists_url":"https://api.github.com/users/tylerbutler/gists{/gist_id}","starred_url":"https://api.github.com/users/tylerbutler/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tylerbutler/subscriptions","organizations_url":"https://api.github.com/users/tylerbutler/orgs","repos_url":"https://api.github.com/users/tylerbutler/repos","events_url":"https://api.github.com/users/tylerbutler/events{/privacy}","received_events_url":"https://api.github.com/users/tylerbutler/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-05-28T19:17:49Z","updated_at":"2015-05-28T19:17:49Z","closed_at":null,"body":"HTTP headers are case-insensitive, per [RFC 7230 Section 3.2][1]:\r\n\r\n> Each header field consists of a **case-insensitive field name** followed by a colon (\":\"), optional leading whitespace, the field value, and optional trailing whitespace.\r\n\r\nHowever, we should be consistent when we refer to the headers, and use `X-WOPI-` in all caps as the prefix, and camel-casing for the rest of the header name, e.g. `X-WOPI-OldLock`.\r\n\r\nUnfortunately, due to the behavior of [sphinxcontrib-httpdomain][] in version 1.3.0, the header values are automatically title-cased in the REST parts of the docs. This issue is actually already fixed in the next version of sphinxcontrib-httpdomain, and I have asked the developer to publish an updated version since 1.3.0 is quite old at this point. Until that's done we'll have inconsistencies.\r\n\r\n\r\n[1]: https://tools.ietf.org/html/rfc7230#section-3.2\r\n[sphinxcontrib-httpdomain]: http://pythonhosted.org/sphinxcontrib-httpdomain/"}}