Message312223
| Author | pfish |
|---|---|
| Recipients | asvetlov, orsenthil, pfish |
| Date | 2018-02-15.20:28:51 |
| SpamBayes Score | -1.0 |
| Marked as misclassified | Yes |
| Message-id | <1518726531.71.0.467229070634.issue32779@psf.upfronthosting.co.za> |
| In-reply-to |
| Content | |
|---|---|
In this case, the RFC is mismatched from the actual behaviour of browsers (as described and codified by WhatWG). It was surprising to me that urljoin() didn't do what I percieved as "the right thing" (and I expect other users would too).
I would personally expect urljoin to do "the thing that everybody else does". Is there a sensible way to reduce this mismatch?
For reference, Java's stdlib does what I would expect here:
URI base = URI.create("https://example.com/?a=b");
URI rel = base.resolve("?");
System.out.println(rel);
https://example.com/? |
|
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2018-02-15 20:28:51 | pfish | set | recipients: + pfish, orsenthil, asvetlov |
| 2018-02-15 20:28:51 | pfish | set | messageid: <1518726531.71.0.467229070634.issue32779@psf.upfronthosting.co.za> |
| 2018-02-15 20:28:51 | pfish | link | issue32779 messages |
| 2018-02-15 20:28:51 | pfish | create | |