Azure / Azure/Azure-Functions

Azure function proxy does not startup when response body contains a quote "

Open
#1,279 1 comment 0 reactions 1 assignee Claimed by @eamonoreilly View on GitHub
Dominant language
PowerShell
Stars
1.1k
Forks
215
Avg merge
4h 2m
Merged PRs (30d)
1

Description

*Problem:*
Azure Function Proxy response.body does not support quotes.

When i have the proxy configured like example 1.
Then i call http://my-function.azurewebsites.net/Helloworld i get:
`Hello World.`

When i add a quote to the response body like example 2.
Function host is not running.

Example 1 without quote
```
{
"$schema": "http://json.schemastore.org/proxies",
"proxies": {
"Helloworld": {
"matchCondition": {
"route": "Helloworld",
"methods": [
"POST"
]
},
"responseOverrides": {
"response.statusCode": "200",
"response.statusReason": "OK",
"response.headers.Content-Type": "application/xml",
"response.body": "Hello World."
}
}
}
}
```

Example 2 with quote

```
{
"$schema": "http://json.schemastore.org/proxies",
"proxies": {
"Helloworld": {
"matchCondition": {
"route": "Helloworld",
"methods": [
"POST"
]
},
"responseOverrides": {
"response.statusCode": "200",
"response.statusReason": "OK",
"response.headers.Content-Type": "application/xml",
"response.body": "Hello World \"."
}
}
}
}
```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.