Skip to content
This repository was archived by the owner on Mar 31, 2025. It is now read-only.

Commit 0ca7afa

Browse files
author
Fabian Zeller
committed
Proxy Fix
1 parent 2c864c3 commit 0ca7afa

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

src/main/java/com/sybit/airtable/Airtable.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,7 @@ public Airtable configure(Configuration config, ObjectMapper objectMapper) throw
156156

157157
// Only one time
158158
Unirest.setObjectMapper(objectMapper);
159+
Unirest.setProxy(HttpHost.create(this.config.getProxy()));
159160

160161
// Add specific Converter for Date
161162
DateTimeConverter dtConverter = new DateConverter();
@@ -182,6 +183,7 @@ public void setProxy(String proxy) {
182183
if (proxy != null && !proxy.isEmpty() && !proxy.equals(" ")) {
183184
this.config.setProxy(proxy);
184185
}
186+
Unirest.setProxy(HttpHost.create(this.config.getProxy()));
185187
}
186188

187189
/**

0 commit comments

Comments
 (0)