Skip to content

Commit fe0b5a4

Browse files
viclovskyArtem Eroshenko
authored andcommitted
response code for AllureOkHttp3 (via allure-framework#179)
1 parent 90b21e7 commit fe0b5a4

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

allure-okhttp3/src/main/java/io/qameta/allure/okhttp3/AllureOkHttp3.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,8 @@ public Response intercept(final Chain chain) throws IOException {
5656

5757
final Response response = chain.proceed(request);
5858
final HttpResponseAttachment.Builder responseAttachmentBuilder = HttpResponseAttachment.Builder
59-
.create("Response").withHeaders(toMapConverter(response.headers().toMultimap()));
59+
.create("Response").withResponseCode(response.code())
60+
.withHeaders(toMapConverter(response.headers().toMultimap()));
6061

6162
final Response.Builder responseBuilder = response.newBuilder();
6263

0 commit comments

Comments
 (0)