Github user lewismc commented on a diff in the pull request:

    https://github.com/apache/nutch/pull/134#discussion_r70545476
  
    --- Diff: 
src/plugin/protocol-httpclient/src/java/org/apache/nutch/protocol/httpclient/HttpFormAuthentication.java
 ---
    @@ -135,6 +143,26 @@ public boolean getFollowRedirects() {
           }
         }
       }
    +  
    +  /**
    +   * @throws NoSuchFieldException
    +   * @throws SecurityException
    +   * @throws IllegalArgumentException
    +   * @throws IllegalAccessException
    +   */
    +  private void setCookieParams(HttpFormAuthConfigurer formConfigurer,
    +             HttpMethodParams params)
    +           throws NoSuchFieldException, SecurityException, 
IllegalArgumentException, IllegalAccessException {
    +   // NUTCH-2280 - set the HttpClient cookie policy
    +        if (formConfigurer.getCookiePolicy() != null) {
    +             String policy = formConfigurer.getCookiePolicy();
    +             Object p = 
FieldUtils.readDeclaredStaticField(CookiePolicy.class, policy);
    +             if(null != p) {
    +                     LOGGER.debug("reflection of cookie value: " + 
p.toString());
    --- End diff --
    
    Code formatting. 2 space indents please.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

Reply via email to