You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hc.apache.org by ol...@apache.org on 2021/02/16 19:02:19 UTC

[httpcomponents-client] branch master updated: Fix typo on cookie formatting method

This is an automated email from the ASF dual-hosted git repository.

olegk pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/httpcomponents-client.git


The following commit(s) were added to refs/heads/master by this push:
     new c39117e  Fix typo on cookie formatting method
c39117e is described below

commit c39117e366378c6e248329464707a0b115638860
Author: imbyungjun <nt...@nts-corp.com>
AuthorDate: Tue Feb 16 23:46:43 2021 +0900

    Fix typo on cookie formatting method
---
 .../org/apache/hc/client5/http/protocol/ResponseProcessCookies.java | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/httpclient5/src/main/java/org/apache/hc/client5/http/protocol/ResponseProcessCookies.java b/httpclient5/src/main/java/org/apache/hc/client5/http/protocol/ResponseProcessCookies.java
index 587a9cd..6444303 100644
--- a/httpclient5/src/main/java/org/apache/hc/client5/http/protocol/ResponseProcessCookies.java
+++ b/httpclient5/src/main/java/org/apache/hc/client5/http/protocol/ResponseProcessCookies.java
@@ -117,12 +117,12 @@ public class ResponseProcessCookies implements HttpResponseInterceptor {
 
                         if (LOG.isDebugEnabled()) {
                             if (LOG.isDebugEnabled()) {
-                                LOG.debug("{} Cookie accepted [{}]", exchangeId, formatCooke(cookie));
+                                LOG.debug("{} Cookie accepted [{}]", exchangeId, formatCookie(cookie));
                             }
                         }
                     } catch (final MalformedCookieException ex) {
                         if (LOG.isWarnEnabled()) {
-                            LOG.warn("{} Cookie rejected [{}] {}", exchangeId, formatCooke(cookie), ex.getMessage());
+                            LOG.warn("{} Cookie rejected [{}] {}", exchangeId, formatCookie(cookie), ex.getMessage());
                         }
                     }
                 }
@@ -134,7 +134,7 @@ public class ResponseProcessCookies implements HttpResponseInterceptor {
         }
     }
 
-    private static String formatCooke(final Cookie cookie) {
+    private static String formatCookie(final Cookie cookie) {
         final StringBuilder buf = new StringBuilder();
         buf.append(cookie.getName());
         buf.append("=\"");