File tree Expand file tree Collapse file tree 1 file changed +12
-12
lines changed
src/main/java/com/rusticisoftware/tincan Expand file tree Collapse file tree 1 file changed +12
-12
lines changed Original file line number Diff line number Diff line change @@ -166,19 +166,19 @@ private HTTPResponse makeSyncRequest(HTTPRequest req) {
166166
167167 try {
168168 final Request webReq = httpClient ().
169- newRequest (url ).
170- method (HttpMethod .fromString (req .getMethod ())).
171- header ("X-Experience-API-Version" , this .version .toString ()).
172- onResponseHeaders (new Response .HeadersListener () {
173- @ Override
174- public void onHeaders (Response webResp ) {
175- response .setStatus (webResp .getStatus ());
176- response .setStatusMsg (webResp .getReason ());
177- for (HttpField header : webResp .getHeaders ()) {
178- response .setHeader (header .getName (), header .getValue ());
179- }
169+ newRequest (url ).
170+ method (HttpMethod .fromString (req .getMethod ())).
171+ header ("X-Experience-API-Version" , this .version .toString ()).
172+ onResponseHeaders (new Response .HeadersListener () {
173+ @ Override
174+ public void onHeaders (Response webResp ) {
175+ response .setStatus (webResp .getStatus ());
176+ response .setStatusMsg (webResp .getReason ());
177+ for (HttpField header : webResp .getHeaders ()) {
178+ response .setHeader (header .getName (), header .getValue ());
180179 }
181- });
180+ }
181+ });
182182
183183 if (this .auth != null ) {
184184 webReq .header ("Authorization" , this .auth );
You can’t perform that action at this time.
0 commit comments