Commit 01e1e9e
authored
Specify the charset of HTTPServer response (prometheus#564)
* Update to specify the charset of response
In some Operational Systems (Like IBM Z/OS and IBM Z/Unix) the JRE runs with a charset different of UTF-8, those default charsets produce wrong behavior and truncated responses.
To avoid this kind of situations I put the specifc charset in the output writer.
This create a consistent response between different platforms.
Signed-off-by: João Paulo Binda Delboni <joaopdelboni@gmail.com>
* Specify the charset of Graphite Request
To prevent problems with encoding in some Operational Systems we set the charset of Graphite Charset.
Signed-off-by: João Paulo Binda Delboni <joaopdelboni@gmail.com>1 parent 570f8bb commit 01e1e9e
2 files changed
Lines changed: 5 additions & 2 deletions
File tree
- simpleclient_graphite_bridge/src/main/java/io/prometheus/client/bridge
- simpleclient_httpserver/src/main/java/io/prometheus/client/exporter
Lines changed: 3 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| 8 | + | |
8 | 9 | | |
9 | 10 | | |
| 11 | + | |
10 | 12 | | |
11 | 13 | | |
12 | 14 | | |
| |||
50 | 52 | | |
51 | 53 | | |
52 | 54 | | |
53 | | - | |
| 55 | + | |
54 | 56 | | |
55 | 57 | | |
56 | 58 | | |
| |||
Lines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| 12 | + | |
12 | 13 | | |
13 | 14 | | |
14 | 15 | | |
| |||
61 | 62 | | |
62 | 63 | | |
63 | 64 | | |
64 | | - | |
| 65 | + | |
65 | 66 | | |
66 | 67 | | |
67 | 68 | | |
| |||
0 commit comments