Skip to content

Commit fe2b157

Browse files
committed
Disable cookie handling in Jetty 9
1 parent 5c5e0b7 commit fe2b157

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/main/java/com/rusticisoftware/tincan/RemoteLRS.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@
3737
import org.eclipse.jetty.client.util.BytesContentProvider;
3838
import org.eclipse.jetty.http.HttpField;
3939
import org.eclipse.jetty.http.HttpMethod;
40+
import org.eclipse.jetty.util.HttpCookieStore;
4041
import org.eclipse.jetty.util.ssl.SslContextFactory;
4142
import lombok.Data;
4243
import lombok.NoArgsConstructor;
@@ -63,6 +64,7 @@ private static HttpClient httpClient() throws Exception {
6364
_httpClient = new HttpClient(new SslContextFactory());
6465
_httpClient.setConnectTimeout(TIMEOUT_CONNECT);
6566
_httpClient.setFollowRedirects(false);
67+
_httpClient.setCookieStore(new HttpCookieStore.Empty());
6668
_httpClient.start();
6769
}
6870

0 commit comments

Comments
 (0)