EasyNetQ.Management.Client icon indicating copy to clipboard operation
EasyNetQ.Management.Client copied to clipboard

exchange names need escaping

Open mijabr opened this issue 6 years ago • 0 comments

Seems DeleteBindingAsync() does not handle the case where source/destination has a colon in the name. I get a 404 when trying to delete.

Examining the request I see

http://localhost:15672/api/bindings/%2F/e/My:Exchange1/e/My:Exchange1/~

but it should be

http://localhost:15672/api/bindings/%2F/e/My%3AExchange1/e/My%3AExchange1/~

Looks like an addition to SanitiseName() and include it DeleteBindingAsync() for source/destination names.

Can I give you a pull request for this?

mijabr avatar Nov 18 '18 23:11 mijabr