Commit bba8785
[Mono.Android+AndroidClientHandler] Use space within User-Agent (#2071)
Fixes: #1931
The HTTP `User-Agent` header must use the space symbol (` `) as a
separator instead of comma (`,`), as per [RFC 7231][0],
which states that [`User-Agent`][1] is:
User-Agent = product *( RWS ( product / comment ) )
[`RWS` is defined in RFC 7230][2]:
RWS = 1*( SP / HTAB )
; required whitespace
([`SP` and `HTAB` in turn come from RFC 5234 Appendix 5.1][3].)
Update `AndroidClientHandler.AddHeaders()` so that space (` `) is
used to separate `User-Agent` values, not comma (`,`).
[0]: https://tools.ietf.org/html/rfc7231
[1]: https://tools.ietf.org/html/rfc7231#page-46
[2]: https://tools.ietf.org/html/rfc7230#section-3.2.3
[3]: https://tools.ietf.org/html/rfc5234#appendix-B.11 parent f3bfa9e commit bba8785
File tree
2 files changed
+8
-2
lines changed- src/Mono.Android
- Test/Xamarin.Android.Net
- Xamarin.Android.Net
2 files changed
+8
-2
lines changedLines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
468 | 468 | | |
469 | 469 | | |
470 | 470 | | |
471 | | - | |
| 471 | + | |
472 | 472 | | |
473 | 473 | | |
474 | 474 | | |
| |||
Lines changed: 7 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
71 | 71 | | |
72 | 72 | | |
73 | 73 | | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
74 | 78 | | |
75 | 79 | | |
76 | 80 | | |
| |||
868 | 872 | | |
869 | 873 | | |
870 | 874 | | |
| 875 | + | |
| 876 | + | |
871 | 877 | | |
872 | 878 | | |
873 | 879 | | |
874 | 880 | | |
875 | 881 | | |
876 | 882 | | |
877 | | - | |
| 883 | + | |
878 | 884 | | |
879 | 885 | | |
880 | 886 | | |
| |||
0 commit comments