Skip to content

Commit 9959f40

Browse files
SubashPradhanSubash Pradhan
andauthored
Revert gzip header (#251)
# Describe - Revert (#249) # License <!-- Your PR comment must contain the following line for us to merge the PR. --> I confirm that this contribution is made under the terms of the MIT license and that I have the authority necessary to make this contribution on behalf of its copyright owner. Co-authored-by: Subash Pradhan <[email protected]>
1 parent 52536e3 commit 9959f40

File tree

4 files changed

+0
-4
lines changed

4 files changed

+0
-4
lines changed

CHANGELOG.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
# Nylas Java SDK Changelog
22

33
### Unreleased
4-
* Added support for `Accept-Encoding: gzip` in HTTP headers
54
* Fixed response type for returning list of scheduled messages
65

76
### [2.5.0] - Released 2024-09-25

src/main/kotlin/com/nylas/NylasClient.kt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,6 @@ class NylasClient(
6363
ACCEPT("Accept"),
6464
AUTHORIZATION("Authorization"),
6565
CONTENT_TYPE("Content-Type"),
66-
ACCEPT_ENCODING("Accept-Encoding"),
6766
}
6867

6968
init {

src/main/kotlin/com/nylas/interceptors/AddVersionHeadersInterceptor.kt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ class AddVersionHeadersInterceptor : Interceptor {
1313
override fun intercept(chain: Interceptor.Chain): Response {
1414
val requestBuilder = chain.request().newBuilder()
1515
.header("User-Agent", USER_AGENT)
16-
.header("Accept-Encoding", "gzip")
1716
return chain.proceed(requestBuilder.build())
1817
}
1918

src/test/kotlin/com/nylas/NylasClientTest.kt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -503,7 +503,6 @@ class NylasClientTest {
503503
assertEquals("Accept", NylasClient.HttpHeaders.ACCEPT.headerName)
504504
assertEquals("Authorization", NylasClient.HttpHeaders.AUTHORIZATION.headerName)
505505
assertEquals("Content-Type", NylasClient.HttpHeaders.CONTENT_TYPE.headerName)
506-
assertEquals("Accept-Encoding", NylasClient.HttpHeaders.ACCEPT_ENCODING.headerName)
507506
}
508507
}
509508
}

0 commit comments

Comments
 (0)