Commit 85ddde3
Danny Tundwe (from Dev Box)
Fix: Add Content-Type header to get-version-code command
- Added Content-Type: application/json header to POST request
- Expanded Accept header to include text/plain and */* for better compatibility
- Resolves 'Unsupported Media Type' error when calling get-version-code
- Added test case for get-version-code command
The fix ensures proper HTTP headers are sent for the getVersionCode operation,
which is a POST request with no body. Some Azure services require both
Content-Type and Accept headers to be present even for empty-body requests.1 parent 2a0caa4 commit 85ddde3
3 files changed
Lines changed: 967 additions & 1 deletion
File tree
- src/edge-action/azext_edge_action
- aaz/latest/edge_action/version
- tests/latest
- recordings
Lines changed: 4 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
165 | 165 | | |
166 | 166 | | |
167 | 167 | | |
168 | | - | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
169 | 172 | | |
170 | 173 | | |
171 | 174 | | |
| |||
0 commit comments