Revert "feat: ability to override content type"

This reverts commit e0fe907d194440893c5a1c964d15600284bd209c.
This commit is contained in:
Ashita Prasad
2024-01-01 09:32:35 +05:30
parent e0fe907d19
commit e08b40cfb6
4 changed files with 1 additions and 36 deletions

View File

@ -15,7 +15,6 @@ Map<String, String> headers = {
"Indicates the encoding transformations that have been applied to the entity body of the response.",
"Content-Security-Policy":
"Controls the sources from which content can be loaded on a web page to mitigate various types of attacks.",
"Content-Type": "Indicates the original media type of the resource (prior to any content encoding applied for sending)",
"Cookie": "Used to send previously stored cookies back to the server.",
"Cross-Origin-Embedder-Policy":
"Controls whether a document is allowed to be embedded in another document.",
@ -71,13 +70,3 @@ List<String> getHeaderSuggestions(String pattern) {
)
.toList();
}
List<String> headerValues = ['application/json', 'text/plain'];
List<String> getHeaderValueSuggestions(String pattern) {
return headerValues
.where(
(element) => element.contains(pattern.toLowerCase()),
)
.toList();
}