Commit 43c9aef
committed
fix(auth): send Content-Type without charset on login
signalk-server's login route does strict equality on 'application/json',
so 'application/json; charset=utf-8' (what StringContent's 3-arg ctor
emits) falls into the browser-form branch and returns a 302 + cookie
instead of the JSON token body. Construct the content with a plain
MediaTypeHeaderValue so the charset is omitted and the JSON branch
is reached.1 parent a7f33a0 commit 43c9aef
1 file changed
Lines changed: 13 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
1 | 2 | | |
2 | 3 | | |
3 | 4 | | |
| |||
111 | 112 | | |
112 | 113 | | |
113 | 114 | | |
114 | | - | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
115 | 127 | | |
116 | 128 | | |
117 | 129 | | |
| |||
0 commit comments