We have migrated an app to Azure Functions 2, and we have the following route setup:
"testABC/{testA}/{testB}"
in the azure function code we have:
public static HttpResponseMessage Run(HttpRequestMessage req, string testA, string testB, TraceWriter log)
{
var res = req.CreateResponse(HttpStatusCode.OK);
res.Content = new StringContent($"{testA} - {testB}");
return res;
}
When I run this url: https://xxx.azurewebsites.net/testABC/74aff65f-5f46-4e28-838b-3093d18a3552/test it works
However if I add a plus sign it does not work: When I run this url: https://xxx.azurewebsites.net/testABC/74aff65f-5f46-4e28-838b-3093d18a3552/te+st It gives this error:
The resource you are looking for has been removed, had its name changed, or is temporarily unavailable.
Adding a space instead of a plus works too. This isn't an issue with Azure Functions 1. What am I missing here?