Commit bbc4658
committed
Add trailing clrf when building header for non-file parts.
When building a `StreamingMultipartBody`, the following example shows the
header for the `first_name` part should be followed by a clrf before the
part's content starts.
==== Before ====
--test-boundary-123
Content-Disposition: form-data; name="avatar"; filename="tiny.gif"
Content-Type: image/gif
GIF89a,;
--test-boundary-123
Content-Disposition: form-data; name="first_name"
John
--test-boundary-123
==== After ====
--test-boundary-123
Content-Disposition: form-data; name="avatar"; filename="tiny.gif"
Content-Type: image/gif
GIF89a,;
--test-boundary-123
Content-Disposition: form-data; name="first_name"
John
--test-boundary-1231 parent 55ec76e commit bbc4658
File tree
2 files changed
+4
-2
lines changed- lib/httparty/request
- spec/httparty
2 files changed
+4
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
135 | 135 | | |
136 | 136 | | |
137 | 137 | | |
| 138 | + | |
| 139 | + | |
138 | 140 | | |
139 | 141 | | |
140 | 142 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
282 | 282 | | |
283 | 283 | | |
284 | 284 | | |
285 | | - | |
| 285 | + | |
286 | 286 | | |
287 | 287 | | |
288 | 288 | | |
289 | 289 | | |
290 | 290 | | |
291 | 291 | | |
292 | | - | |
| 292 | + | |
293 | 293 | | |
294 | 294 | | |
295 | 295 | | |
| |||
0 commit comments