Skip to content

Commit

Permalink
解决日志拦截器缺陷
Browse files Browse the repository at this point in the history
  • Loading branch information
goldze committed Jun 5, 2020
1 parent 564669e commit f52f130
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ public Response intercept(Chain chain) throws IOException {
long st = System.nanoTime();
Response response = chain.proceed(request);

List<String> segmentList = ((Request) request.tag()).url().encodedPathSegments();
List<String> segmentList = request.url().encodedPathSegments();
long chainMs = TimeUnit.NANOSECONDS.toMillis(System.nanoTime() - st);
String header = response.headers().toString();
int code = response.code();
Expand Down

0 comments on commit f52f130

Please sign in to comment.