Skip to content

Commit ab3d051

Browse files
ergunshDevtools-frontend LUCI CQ
authored andcommitted
[AiAssistance] Add http/2 pseudo headers to allow list
According to Gemini: These headers are header fields that begin with a colon (:) and are used to convey essential information about a request or response, such as the method, path, authority, and scheme. They effectively replace the HTTP/1.1 request line and status line. Fixed: 399100945 Change-Id: I9850a0a77e92ce7696d6741de990f6004c635965 Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/6300644 Commit-Queue: Alex Rudenko <[email protected]> Auto-Submit: Ergün Erdoğmuş <[email protected]> Reviewed-by: Alex Rudenko <[email protected]>
1 parent 6eb79ec commit ab3d051

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

front_end/panels/ai_assistance/data_formatters/NetworkRequestFormatter.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -167,6 +167,10 @@ Request initiator chain:\n${this.formatRequestInitiatorChain()}`;
167167

168168
// Header names that could be included in the prompt, lowercase.
169169
const allowedHeaders = new Set([
170+
':authority',
171+
':method',
172+
':path',
173+
':scheme',
170174
'a-im',
171175
'accept-ch',
172176
'accept-charset',

0 commit comments

Comments
 (0)