matrix-org / gomatrix

A Golang Matrix client
Apache License 2.0
285 stars 53 forks source link

Manually append a trailing slash at the end of a path if needed #61

Closed babolivier closed 5 years ago

babolivier commented 5 years ago

Fixes matrix-org/matrix-spec-proposals#60

babolivier commented 5 years ago

Out of interest, which paths are affected?

I don't have a specific list, but this impacted any path that ends with a trailing slash in the spec (as it was systematically removing it).

richvdh commented 5 years ago

do you have any examples? Basically I am surprised that we have any APIs that require trailing slashes.

babolivier commented 5 years ago

Gah, missed the notif for your message. An example is https://matrix.org/docs/spec/client_server/r0.4.0.html#get-matrix-client-r0-pushrules

richvdh commented 5 years ago

Gah, missed the notif for your message. An example is https://matrix.org/docs/spec/client_server/r0.4.0.html#get-matrix-client-r0-pushrules

thanks, raised as https://github.com/matrix-org/matrix-doc/issues/1944.