From 1265ffa9c5c326aef9e83e3229c387b8a142adf0 Mon Sep 17 00:00:00 2001 From: "(AJ) Zin Kyaw" Date: Wed, 9 Aug 2023 13:36:10 +0000 Subject: [PATCH] Added missing content-disposition header Closes https://github.com/dart-lang/sdk/pull/53129 GitOrigin-RevId: beb751dd77fcc201323199eb297265e2177c60b3 Change-Id: Ic693d15d44a7478f4387668d85a3b3c85adc191e Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/318620 Reviewed-by: Slava Egorov Commit-Queue: Slava Egorov --- sdk/lib/_http/http.dart | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/sdk/lib/_http/http.dart b/sdk/lib/_http/http.dart index 77a70d5a6b0..15597fcddcb 100644 --- a/sdk/lib/_http/http.dart +++ b/sdk/lib/_http/http.dart @@ -389,6 +389,7 @@ abstract interface class HttpHeaders { static const viaHeader = "via"; static const warningHeader = "warning"; static const wwwAuthenticateHeader = "www-authenticate"; + static const contentDisposition = "content-disposition"; // Cookie headers from RFC 6265. static const cookieHeader = "cookie"; @@ -429,7 +430,8 @@ abstract interface class HttpHeaders { retryAfterHeader, serverHeader, varyHeader, - wwwAuthenticateHeader + wwwAuthenticateHeader, + contentDisposition ]; static const requestHeaders = [