Eva Pace and Peter Tripp
55fd8352e4
assistant_slash_commands: Be more precise in content type matching ( #29124 )
...
While investigating https://github.com/zed-industries/zed/issues/28076 ,
I found out often times the content type header of a website comes with
more data, such as the `charset`. So instead of doing an equal
comparison, I changed to a `starts_with`.
You can see an example here:
```shell
$ curl -sS -D - https://github.com/zed-industries/zed/blob/main/Cargo.toml -o /dev/null | head -n 10
HTTP/2 200
date: Sun, 20 Apr 2025 10:19:52 GMT
content-type: text/html; charset=utf-8
vary: X-PJAX, X-PJAX-Container, Turbo-Visit, Turbo-Frame,Accept-Encoding, Accept, X-Requested-With
etag: W/"92dabf048b34d04a1b1d94e29cae4aca"
cache-control: max-age=0, private, must-revalidate
strict-transport-security: max-age=31536000; includeSubdomains; preload
x-frame-options: deny
x-content-type-options: nosniff
x-xss-protection: 0
```
Release Notes:
- Improved Content Type matching of `/fetch` commands in Assistant
Co-authored-by: Peter Tripp <peter@zed.dev >
2025-05-06 04:38:03 +00:00
..
2025-04-07 18:10:01 +00:00
2025-05-05 22:28:35 -03:00
2025-04-24 15:17:33 +00:00
2025-05-01 19:24:14 +00:00
2025-04-02 13:26:34 -07:00
2025-05-06 00:21:22 +00:00
2025-05-06 01:02:56 +00:00
2025-05-06 01:02:56 +00:00
2025-04-02 13:26:34 -07:00
2025-05-06 04:38:03 +00:00
2025-05-05 13:13:36 +00:00
2025-05-06 00:47:11 +02:00
2025-04-02 13:26:34 -07:00
2025-04-23 20:54:09 +00:00
2025-04-15 09:35:13 -06:00
2025-04-28 09:21:27 +00:00
2025-04-02 13:26:34 -07:00
2025-04-29 12:18:32 -04:00
2025-04-07 20:26:55 +00:00
2025-04-10 22:58:41 +00:00
2025-04-23 20:54:09 +00:00
2025-04-02 13:26:34 -07:00
2025-04-11 17:38:14 +00:00
2025-05-05 18:46:54 -04:00
2025-05-04 08:28:39 +00:00
2025-05-05 21:36:12 +02:00
2025-05-04 08:28:39 +00:00
2025-04-02 13:26:34 -07:00
2025-04-28 22:15:24 +00:00
2025-04-02 13:26:34 -07:00
2025-05-06 03:41:52 +00:00
2025-05-06 03:41:52 +00:00
2025-05-05 21:36:12 +02:00
2025-05-05 08:21:45 -04:00
2025-04-02 13:26:34 -07:00
2025-05-05 21:27:20 +00:00
2025-04-26 01:44:56 +02:00
2025-04-28 22:15:24 +00:00
2025-05-05 20:08:14 +00:00
2025-05-05 21:27:20 +00:00
2025-04-19 23:26:29 +00:00
2025-05-02 12:10:01 +00:00
2025-04-02 13:26:34 -07:00
2025-05-06 04:30:06 +00:00
2025-05-05 15:57:03 -04:00
2025-05-05 21:36:12 +02:00
2025-05-02 15:58:54 +00:00
2025-04-02 13:26:34 -07:00
2025-05-05 21:36:12 +02:00
2025-05-05 11:46:42 +00:00
2025-05-03 20:16:25 +00:00
2025-04-15 21:36:30 -04:00
2025-05-02 15:02:53 +00:00
2025-04-02 13:26:34 -07:00
2025-05-01 21:24:26 -04:00
2025-04-02 13:26:34 -07:00
2025-05-02 15:02:53 +00:00
2025-05-01 21:24:26 -04:00
2025-04-23 20:54:09 +00:00
2025-05-05 22:28:35 -03:00
2025-04-23 20:54:09 +00:00
2025-05-04 21:32:45 +00:00
2025-05-06 07:17:39 +03:00
2025-04-20 00:53:30 +00:00
2025-04-02 13:26:34 -07:00
2025-04-02 13:26:34 -07:00
2025-04-28 11:12:16 -04:00
2025-04-02 13:26:34 -07:00
2025-05-04 20:21:30 -03:00
2025-05-04 08:28:39 +00:00
2025-04-10 21:16:43 +00:00
2025-04-18 14:15:19 +00:00
2025-05-05 23:05:47 +00:00
2025-04-11 01:47:40 +05:30
2025-04-23 20:54:09 +00:00
2025-05-06 01:02:56 +00:00
2025-04-02 13:26:34 -07:00
2025-05-04 17:37:42 +00:00
2025-05-06 01:02:56 +00:00
2025-05-05 17:52:23 +00:00
2025-04-02 13:26:34 -07:00
2025-04-28 09:21:27 +00:00
2025-05-05 23:50:57 +03:00
2025-04-02 13:26:34 -07:00
2025-04-08 16:01:27 +00:00
2025-04-02 13:26:34 -07:00
2025-05-05 08:21:45 -04:00
2025-04-30 02:13:13 +00:00
2025-04-29 19:30:16 +00:00
2025-04-07 18:46:09 +00:00
2025-04-29 21:58:45 -03:00
2025-05-06 01:02:56 +00:00
2025-04-19 23:29:36 +00:00
2025-05-02 17:57:16 -03:00
2025-04-28 11:12:16 -04:00
2025-04-08 16:09:06 -06:00
2025-05-05 17:52:23 +00:00
2025-04-24 14:55:37 +00:00
2025-04-23 12:38:46 -04:00
2025-05-02 01:26:12 +00:00
2025-04-02 13:26:34 -07:00
2025-04-23 20:54:09 +00:00
2025-05-02 08:38:29 +00:00
2025-04-02 13:26:34 -07:00
2025-05-05 21:32:00 +01:00
2025-05-04 08:28:39 +00:00
2025-04-02 13:26:34 -07:00
2025-05-01 16:11:13 -04:00
2025-05-05 11:48:31 -04:00
2025-05-05 08:46:49 +00:00
2025-04-02 13:26:34 -07:00
2025-04-22 21:32:32 +00:00
2025-04-02 13:26:34 -07:00
2025-05-01 21:24:26 -04:00
2025-05-04 08:28:39 +00:00
2025-05-01 19:24:14 +00:00
2025-04-02 13:26:34 -07:00
2025-04-03 23:32:50 +02:00
2025-04-16 20:22:44 +00:00
2025-04-28 16:50:47 +00:00
2025-04-02 13:26:34 -07:00
2025-05-05 09:35:48 +03:00
2025-04-28 16:50:47 +00:00
2025-04-02 13:26:34 -07:00
2025-04-25 17:41:49 +03:00
2025-04-27 19:04:51 +00:00
2025-04-28 09:21:27 +00:00
2025-04-02 13:26:34 -07:00
2025-04-18 12:11:54 +00:00
2025-04-02 13:26:34 -07:00
2025-04-28 22:15:24 +00:00
2025-04-02 13:26:34 -07:00
2025-04-02 13:26:34 -07:00
2025-04-08 16:09:06 -06:00
2025-05-01 17:37:43 +02:00
2025-04-02 13:26:34 -07:00
2025-04-02 13:26:34 -07:00
2025-04-02 13:26:34 -07:00
2025-04-28 09:21:27 +00:00
2025-05-05 20:08:14 +00:00
2025-05-02 08:38:29 +00:00
2025-04-02 13:26:34 -07:00
2025-04-21 21:30:21 -07:00
2025-05-05 18:50:53 +00:00
2025-05-05 18:50:53 +00:00
2025-04-09 01:53:54 +00:00
2025-05-05 16:13:14 -06:00
2025-04-02 13:26:34 -07:00
2025-04-23 14:06:58 +00:00
2025-04-28 14:29:17 +00:00
2025-04-02 13:26:34 -07:00
2025-05-01 21:24:26 -04:00
2025-04-16 19:05:57 +02:00
2025-05-06 03:41:52 +00:00
2025-04-08 16:09:06 -06:00
2025-04-08 16:09:06 -06:00
2025-04-07 19:03:24 +00:00
2025-04-29 16:06:43 +00:00
2025-05-01 19:24:14 +00:00
2025-05-06 01:02:56 +00:00
2025-04-23 20:54:09 +00:00
2025-04-23 15:30:20 +00:00
2025-05-06 00:47:11 +02:00
2025-04-30 17:46:11 +00:00
2025-05-05 22:28:35 -03:00
2025-04-25 20:06:40 +00:00
2025-05-05 22:28:35 -03:00
2025-05-06 01:02:56 +00:00
2025-04-27 02:31:25 +00:00
2025-05-01 10:59:51 -04:00
2025-04-23 20:54:09 +00:00