Commit 7e90530
Stephane Leclercq
fix(request) add application/json content-type header to POST/PUT requests
This fix affects all POST/PUT requests. Gitlab currently ignores
the body of POST/PUT requests when the content-type header is not set.
Even though the response status is 200, the requests have no effect on
Gitlab.1 parent 2ed6f06 commit 7e90530
1 file changed
+9
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
79 | 79 | | |
80 | 80 | | |
81 | 81 | | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
82 | 86 | | |
83 | 87 | | |
84 | 88 | | |
| |||
142 | 146 | | |
143 | 147 | | |
144 | 148 | | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
145 | 154 | | |
146 | 155 | | |
147 | 156 | | |
| |||
0 commit comments