You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hc.apache.org by "Oleg Kalnichevski (JIRA)" <ji...@apache.org> on 2010/04/29 06:10:50 UTC

[jira] Resolved: (HTTPCLIENT-931) Change value of 'Expect' header in org.apache.http.client.methods.HttpPost

     [ https://issues.apache.org/jira/browse/HTTPCLIENT-931?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Oleg Kalnichevski resolved HTTPCLIENT-931.
------------------------------------------

    Resolution: Fixed

> Change value of 'Expect' header in org.apache.http.client.methods.HttpPost
> --------------------------------------------------------------------------
>
>                 Key: HTTPCLIENT-931
>                 URL: https://issues.apache.org/jira/browse/HTTPCLIENT-931
>             Project: HttpComponents HttpClient
>          Issue Type: Bug
>         Environment: Android
>            Reporter: Elliott Hughes
>            Priority: Minor
>
> see original report at http://code.google.com/p/android/issues/detail?id=7208.
> i'm going to apply the obvious patch to Android:
> diff --git a/src/org/apache/http/params/CoreProtocolPNames.java b/src/org/apache/http/params/CoreProtocolPNames.java
> index a42c5de..a0a726d 100644
> --- a/src/org/apache/http/params/CoreProtocolPNames.java
> +++ b/src/org/apache/http/params/CoreProtocolPNames.java
> @@ -94,8 +94,8 @@ public interface CoreProtocolPNames {
>  
>      /**
>       * <p>
> -     * Activates 'Expect: 100-Continue' handshake for the 
> -     * entity enclosing methods. The purpose of the 'Expect: 100-Continue'
> +     * Activates 'Expect: 100-continue' handshake for the
> +     * entity enclosing methods. The purpose of the 'Expect: 100-continue'
>       * handshake to allow a client that is sending a request message with 
>       * a request body to determine if the origin server is willing to 
>       * accept the request (based on the request headers) before the client
> diff --git a/src/org/apache/http/protocol/HTTP.java b/src/org/apache/http/protocol/HTTP.java
> index de76ca6..9223955 100644
> --- a/src/org/apache/http/protocol/HTTP.java
> +++ b/src/org/apache/http/protocol/HTTP.java
> @@ -60,7 +60,7 @@ public final class HTTP {
>      public static final String SERVER_HEADER = "Server";
>      
>      /** HTTP expectations */
> -    public static final String EXPECT_CONTINUE = "100-Continue";
> +    public static final String EXPECT_CONTINUE = "100-continue";
>  
>      /** HTTP connection control */
>      public static final String CONN_CLOSE = "Close";

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@hc.apache.org
For additional commands, e-mail: dev-help@hc.apache.org