-
Notifications
You must be signed in to change notification settings - Fork 9
PUTing state events 301s #43
Comments
Looks like the default mux will 301 all the paths with encoded slashes in them. https://github.com/golang/go/blob/master/src/net/http/server.go#L2187 |
I'd suggest not using "/" in state keys. |
That isn't a viable solution. The IRC bridge uses the state key as the |
The problem with https://github.com/golang/go/blob/master/src/net/http/server.go#L2187 is not the fact that it is sanitizing - it's the fact it is sanitizing with func main() {
u, _ := url.Parse("https://google.com/path/with%2Fencoded%2Fslashes")
fmt.Println("Path: ", u.Path, " RawPath: ", u.RawPath)
}
|
golang/go#14815 has a good write up. In my opinion this is something that enough languages get wrong that we should work around it in the spec. Otherwise we are just making unnecessary work for ourselves. |
That's a pretty good write-up and does also include a workaround:
As for:
I agree, but not by disallowing |
As for this particular issue with Dendron, like it or not, we need to fix it. You must be well aware that this does not just affect
|
On a development synapse:
Same request on matrix.org:
Note the state_key in the
Location
isirc:/
and notirc://
. Knowing Go, this is probably aPath
vsRawPath
bug.The text was updated successfully, but these errors were encountered: