Skip to content

Fix to Update WebAPI to Case Lowered HTTP Headers#766

Closed
candiedoperation wants to merge 1 commit intoveyon:4.6from
candiedoperation:4.6
Closed

Fix to Update WebAPI to Case Lowered HTTP Headers#766
candiedoperation wants to merge 1 commit intoveyon:4.6from
candiedoperation:4.6

Conversation

@candiedoperation
Copy link

@candiedoperation candiedoperation commented Nov 3, 2021

Fixes Issue #767 for Branch 4.6

https://www.w3.org/Protocols/rfc2616/rfc2616-sec4.html#sec4.2
https://www.rfc-editor.org/rfc/rfc7230#appendix-A.2

HTTP Headers are Case Insensitive. Maximum HTTP Libraries in
JavaScript (XHR, Axios, fetch) convert HTTP Headers' to Lowercase
and Veyon fails to authenticate as the below code (before this edit)
returns QStringLiteral("Connection-Uid") instead of all lowercase
QStringLiteral("connection-uid")

This issue in Veyon was discovered during development of an Android/iOS
Client for Veyon at https://github.com/candiedoperation/Monitoring-Center

@candiedoperation
Copy link
Author

@tobydox, requesting you to please merge this pull request to implement the HTTP Headers in Veyon 4.6's Code

@tobydox
Copy link
Member

tobydox commented Nov 5, 2021

Thank you for identifying and reporting this issue! Indeed this required a fix to properly implement case insensitive header field lookups - see 5d3e5a6 for details. Just changing to lower case would break existing applications which send requests with upper case characters.

@tobydox tobydox closed this Nov 5, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants