Skip to content

Commit 08adce2

Browse files
committed
Change header name
1 parent d849804 commit 08adce2

File tree

12 files changed

+14
-14
lines changed

12 files changed

+14
-14
lines changed

templates/android/library/src/main/java/io/appwrite/services/ServiceTemplate.kt.twig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ class {{ service.name | caseUcfirst }} : Service {
128128
val headers = mutableMapOf(
129129
{{ method.headers|map((header, key) => " \"#{key}\" to \"#{header}\"")|join(',\n')|raw }},
130130
{% if method.type == "graphql" %}
131-
"x-{{ spec.title | caseLower }}-graphql-packed" to true
131+
"x-sdk-graphql" to true
132132
{% endif %}
133133
)
134134
{% if method.responseModel %}

templates/dart/base/requests/graphql.twig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
final Map<String, String> headers = {
88
{{ utils.map_headers(method.headers) }},
9-
"x-{{ spec.title | caseLower }}-graphql-packed: true,
9+
"x-sdk-graphql: true,
1010
}};
1111

1212
final res = await client.call(HttpMethod.{{ method.method | caseLower }}, path: path, params: params, headers: headers);

templates/deno/src/services/service.ts.twig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ export class {{ service.name | caseUcfirst }} extends Service {
115115
'{{ key }}': '{{ header }}',
116116
{% endfor %}
117117
{% if method.type == 'graphql' %}
118-
'x-{{ spec.title | caseLower }}-graphql-packed': 'true',
118+
'x-sdk-graphql': 'true',
119119
{% endif %}
120120
};
121121

templates/flutter/base/requests/graphql.twig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
final Map<String, String> headers = {
88
{{ utils.map_headers(method.headers) }},
9-
"x-{{ spec.title | caseLower }}-graphql-packed: true,
9+
"x-sdk-graphql: true,
1010
}};
1111

1212
final res = await client.call(HttpMethod.{{ method.method | caseLower }}, path: path, params: params, headers: headers);

templates/go/services/service.go.twig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ func (srv *{{ service.name | caseUcfirst }}) {{ method.name | caseUcfirst }}({%
4848
"{{ key }}": "{{ header }}",
4949
{% endfor %}
5050
{% if method.type == 'graphql' %}
51-
"x-{{ spec.title | caseLower }}-graphql-packed": "true",
51+
"x-sdk-graphql": "true",
5252
{% endif %}
5353
}
5454
return srv.client.Call("{{ method.method | caseUpper }}", path, headers, params)

templates/kotlin/src/main/kotlin/io/appwrite/services/ServiceTemplate.kt.twig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ class {{ service.name | caseUcfirst }} : Service {
126126
val headers = mutableMapOf(
127127
{{ method.headers|map((header, key) => " \"#{key}\" to \"#{header}\"")|join(',\n')|raw }},
128128
{% if method.type == "graphql" %}
129-
"x-{{ spec.title | caseLower }}-graphql-packed" to true
129+
"x-sdk-graphql" to true
130130
{% endif %}
131131
)
132132
{% if method.responseModel %}

templates/node/lib/services/service.js.twig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ class {{ service.name | caseUcfirst }} extends Service {
9292
'{{ key }}': '{{ header }}',
9393
{% endfor %}
9494
{% if method.type == 'graphql' %}
95-
'x-{{ spec.title | caseLower }}-graphql-packed': 'true',
95+
'x-sdk-graphql': 'true',
9696
{% endif %}
9797
};
9898

templates/php/base/requests/graphql.twig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,6 @@
66
'{{ key }}' => '{{ header }}',
77
{% endfor %}
88
{% if method.type == 'graphql' %}
9-
'x-{{ spec.title | caseLower }}-graphql-packed': 'true',
9+
'x-sdk-graphql': 'true',
1010
{% endif %}
1111
], $params);

templates/python/package/services/service.py.twig

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ class {{ service.name | caseUcfirst }}(Service):
7373
'{{ key }}': '{{ header }}',
7474
{% endfor %}
7575
{% if method.type == 'graphql' %}
76-
'x-{{ spec.title | caseLower }}-graphql-packed': 'true',
76+
'x-sdk-graphql': 'true',
7777
{% endif %}
7878
}, params, param_name, on_progress, upload_id)
7979
{% else %}
@@ -86,7 +86,7 @@ class {{ service.name | caseUcfirst }}(Service):
8686
'{{ key }}': '{{ header }}',
8787
{% endfor %}
8888
{% if method.type == 'graphql' %}
89-
'x-{{ spec.title | caseLower }}-graphql-packed': 'true',
89+
'x-sdk-graphql': 'true',
9090
{% endif %}
9191
}, params)
9292
{% endif %}

templates/ruby/lib/container/services/service.rb.twig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ module {{spec.title | caseUcfirst}}
5252
"{{ key }}": '{{ header }}',
5353
{% endfor %}
5454
{% if method.type == 'graphql' %}
55-
"x-{{ spec.title | caseLower }}-graphql-packed": "true",
55+
"x-sdk-graphql": "true",
5656
{% endif %}
5757
}
5858

0 commit comments

Comments
 (0)