Commit fdf3d31
authored
rest: handle endpoints that don't output json
The /changes/<id>/revisions/current/patch?zip endpoint doesn't
return json output but a binary data (the zipped contents of the
change). The usual get() function raises a ValueError when
faced with this. As a workaround provide a get_raw() function
to allow callers to handle the decoding of data.1 parent 89578cb commit fdf3d31
1 file changed
+20
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
117 | 117 | | |
118 | 118 | | |
119 | 119 | | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
120 | 140 | | |
121 | 141 | | |
122 | 142 | | |
| |||
0 commit comments