Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [lyo-dev] Why add If-Match twice?

I'd call it a bug.    Ill bet wink doesn't even add the second one.    In any case,  only one if-match required.

Regards, Mike

On Dec 17, 2015 3:17 PM, "Robert Kerr" <rakerr@xxxxxxxxxx> wrote:
I'm working with the org.eclipse.lyo.client.java.sample package (to try to troubleshoot my OSLC4NET problems) and had a question.  In the DoorsOauthSample.java file, I can get a DOORS requirement just fine, and manipulate it as intended.  When I modify a requirement, it calls OslcOAuthClient:updateResource.  Inside that function is the line:

        return restClient.resource(url).contentType(mediaType).accept(acceptType).header("Authorization",authHeader).header(HttpHeaders.IF_MATCH, ifMatch).header(OSLCConstants.OSLC_CORE_VERSION,"2.0").header(HttpHeaders.IF_MATCH, ifMatch).put(artifact);


Why is the IF_MATCH header set twice?

--
-bob

I'm at a complete loss for...um... those things that are made out
of letters and assembled into sentences.
**********************************************************************
*      Robert Kerr  SSPS Developer and CUBIT Support Manager         *
*      rakerr@xxxxxxxxxx          |    PO Box 5800,  MS 0125         *
*      Phone: (505) 844-8606      |    Sandia National Labs          *
*       Fax: (505) 844-2018       |  Albuquerque, NM 87185-0125      *
**********************************************************************

_______________________________________________
lyo-dev mailing list
lyo-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/lyo-dev

Back to the top