rocky
rocky copied to clipboard
transformRequest has a gotcha, docs or code fix?
transformRequest only fires if its a method that can have a body. This is misleading, as it's very common to perhaps want to tweak headers or something on an outgoing request before it gets to the destination server.
The solution is "use" instead of "transformRequest", but I was banging my head on this today.