-
Notifications
You must be signed in to change notification settings - Fork 183
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Multi-address client: move setHostHeader to key factory, avoid NPE warn
Motivation: `setHostHeader` method is too far from where it's used and IDE warns that `authority` might be `null`. Modifications: - Move `setHostHeader` to `CachingKeyFactory`; - Pass host and port as arguments from the context where it's known that the `host` is non-null; - Use `compareTo` for HTTP version check;
- Loading branch information
1 parent
ff218cc
commit 5c3e372
Showing
1 changed file
with
14 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters