-
Notifications
You must be signed in to change notification settings - Fork 114
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
automate-ui: cleanup statusText usage #698
Conversation
dcf9653
to
237e789
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍 👍
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I believe the fix applied in telemetry.service.ts also needs to be applied here:
(1) telemetry.service.ts::L262
console.log(`Error emitting telemetry event: ${error.status} - ${error.statusText}`);
(2) reset_password.component.ts::L53
error.status ? `${error.status} - ${error.statusText}` : 'Server error';
|
- removed from test specs where it didn't matter - replaced with error.message where it did matter - placed a comment on it where I didn't want to change anything What is this? HTTP/2 doesn't send a "status text". Status text is the last segment after HTTP/x.y <CODE> <REASON> in the server response, so, where with HTTP/1.1 we see HTTP/1.1 401 Unauthorized with HTTP/2, we see HTTP/2 401 The corresponding RFC7540 paragraph is [1]: > HTTP/2 does not define a way to carry the version or reason phrase that is included in an HTTP/1.1 status line. [1]: https://greenbytes.de/tech/webdav/rfc7540.html#rfc.section.8.1.2.4.p.2 Signed-off-by: Stephan Renatus <[email protected]>
237e789
to
826c862
Compare
WMWG (will merge when green) |
What is this? HTTP/2 doesn't send a "status text". Status text is the last segment after
in the server response, so, where with HTTP/1.1 we see
with HTTP/2, we see
The corresponding RFC7540 paragraph is