This repository was archived by the owner on Apr 26, 2020. It is now read-only.
Commit f89d424
Fix Sentry "Unsupported media type 'application/json, application/json' in request" (#224)
* sentry: do not send Content-Type: application/json twice
The header is already set by called Httpie library. Calling ::header just adds a new header, does not do any replace.
Sentry does not recognize the request when we send the headers twice and fails with error:
```
[RuntimeException] on [factcool-www3.superhosting.cz]
Unable to create a release: Array
(
[detail] => Unsupported media type 'application/json, application/json' in request.
)
```
* changelog: update1 parent c3ce86a commit f89d424
2 files changed
Lines changed: 1 addition & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| 9 | + | |
9 | 10 | | |
10 | 11 | | |
11 | 12 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
82 | 82 | | |
83 | 83 | | |
84 | 84 | | |
85 | | - | |
86 | 85 | | |
87 | 86 | | |
88 | 87 | | |
| |||
113 | 112 | | |
114 | 113 | | |
115 | 114 | | |
116 | | - | |
117 | 115 | | |
118 | 116 | | |
119 | 117 | | |
| |||
0 commit comments