Commit 1eef643
committed
refactor: simplify HTTP headers
Remove unnecessary HTTP headers and standardize header casing across the
codebase. This simplifies the header management by:
- Removing unused machine ID and session ID tracking
- Using consistent header casing (capitalized)
- Removing redundant version headers
- Simplifying authorization header format
These changes make the code more maintainable while preserving core
functionality.
Source: https://github.com/zed-industries/zed/blob/ad43bbbf5eda59eba65309735472e0be58b4f7dd/crates/copilot/src/copilot_chat.rs#L3241 parent cdb9c5f commit 1eef643
2 files changed
Lines changed: 15 additions & 31 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
214 | 214 | | |
215 | 215 | | |
216 | 216 | | |
217 | | - | |
218 | 217 | | |
219 | 218 | | |
220 | 219 | | |
| |||
229 | 228 | | |
230 | 229 | | |
231 | 230 | | |
232 | | - | |
233 | | - | |
| 231 | + | |
234 | 232 | | |
235 | 233 | | |
236 | 234 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
20 | | - | |
| 20 | + | |
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
| |||
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
34 | | - | |
35 | | - | |
36 | | - | |
37 | | - | |
38 | | - | |
39 | | - | |
40 | | - | |
41 | | - | |
42 | | - | |
43 | | - | |
44 | 34 | | |
45 | 35 | | |
46 | 36 | | |
| |||
92 | 82 | | |
93 | 83 | | |
94 | 84 | | |
95 | | - | |
96 | | - | |
97 | | - | |
98 | | - | |
99 | | - | |
100 | | - | |
101 | | - | |
102 | | - | |
103 | | - | |
104 | | - | |
105 | | - | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
106 | 92 | | |
107 | 93 | | |
108 | 94 | | |
109 | 95 | | |
110 | | - | |
111 | | - | |
112 | | - | |
113 | | - | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
114 | 100 | | |
115 | 101 | | |
116 | 102 | | |
| |||
237 | 223 | | |
238 | 224 | | |
239 | 225 | | |
240 | | - | |
241 | | - | |
| 226 | + | |
| 227 | + | |
242 | 228 | | |
243 | 229 | | |
244 | 230 | | |
| |||
0 commit comments