Skip to content

Commit 2d757d8

Browse files
committed
Resend body for 307/308 (see #11)
1 parent 576b700 commit 2d757d8

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/main/java/jodd/http/HttpSession.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -219,9 +219,12 @@ public HttpResponse sendRequest(HttpRequest httpRequest) {
219219
}
220220

221221
final String originalMethod = httpRequest.method();
222+
final String originalBody = httpRequest.bodyRaw();
222223
httpRequest = new HttpRequest()
223224
.method(originalMethod)
224-
.set(newPath);
225+
.set(newPath)
226+
.body(originalBody)
227+
;
225228
continue;
226229
}
227230

0 commit comments

Comments
 (0)