Commit d538bde
committed
Close ByteStreamProducer data implementing ReadCloser
This commit closes the data when passed into ByteStreamProducer as a
ReadCloser. Example is when go-swagger generates a server handler that
produces "application/octet-stream", the data will be a ReadCloser.
Ref:
- #46
- go-swagger/go-swagger#1311
Signed-off-by: Yongming Lai <yongming.lai@gmail.com>1 parent f4da4bf commit d538bde
2 files changed
Lines changed: 14 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
109 | 109 | | |
110 | 110 | | |
111 | 111 | | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
112 | 116 | | |
113 | 117 | | |
114 | 118 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
217 | 217 | | |
218 | 218 | | |
219 | 219 | | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
220 | 230 | | |
0 commit comments