Skip to content
Snippets Groups Projects
Commit 4beb7ac7 authored by Tobias S. Josefowitz's avatar Tobias S. Josefowitz
Browse files

Standards.URI: make __hash() invariant to case of hostname

`==() is invariant to it already, and the hashes of two "identical" URI
objects should ideally be equal as well.
parent 2f099e1b
No related branches found
No related tags found
No related merge requests found
......@@ -559,7 +559,7 @@ string get_http_path_query() {
return http_encode(((path||"")/"/")[*])*"/" + (q?"?"+q:"");
}
int __hash() { return hash_value(_sprintf('s')); }
int __hash() { return hash_value(_sprintf('x')); }
private mapping(int:string) sprintf_cache = ([]);
string _sprintf(int how, mapping|void args)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment